Exemplo n.º 1
0
 public void OnDestroy()
 {
     //If this is a client player on the server the OnClientExitLobby will not be called.
     //Call it here instead.
     if (networkManager.IsHost() && networkManager.localPlayer != this)
     {
         OnClientExitLobby();
     }
 }
Exemplo n.º 2
0
 public bool IsHost()
 {
     return(networkManager.IsHost());
 }