IsHost() public method

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