Search Unity

Documentation for ClientScene.RegisterPrefab

Discussion in 'Multiplayer' started by lejean, Jan 9, 2016.

  1. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    scourgey likes this.
  2. hexagonius

    hexagonius

    Joined:
    Mar 26, 2013
    Posts:
    98
    - NetworkServer is not a singleton, use it as is without instance
    - NetworkServer.Listen()
    - ClientScene.Ready()
    - There's nothing close to similar with this. The closest thing I could find is registering MsgType.Ready on the client via
    Code (CSharp):
    1. NetworkManager.client.RegisterHandler(MsgType.Ready, ReadyMessage);
    2.  
    3. public void ReadyMessage(NetworkMessage networkMessage)
    4. {
    5.    Debug.Log("Client Ready! ");
    6. }
     
  3. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    Post is 2 years old mate, I probably figured it out :p
     
  4. hexagonius

    hexagonius

    Joined:
    Mar 26, 2013
    Posts:
    98
    Yeah, I know, but I was frustrated finding only incomplete posts and questions about the topic while I was looking for answers that I just wanted to relieve myself this way :)