IsHost() публичный Метод

public IsHost ( ) : bool
Результат bool
Пример #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();
     }
 }
Пример #2
0
 public bool IsHost()
 {
     return(networkManager.IsHost());
 }