Пример #1
0
 public static LobbyPlayer GetLocalPlayer()
 {
     // Find local player and give ready signal
     foreach (LobbyPlayer player in LobbyPlayer.GetAll())
     {
         if (player.isLocalPlayer)
         {
             return(player);
         }
     }
     Debug.Log("Local player not found");
     return(null);
 }