Пример #1
0
 // Check if the players are all ready
 private bool ReadyToStart()
 {
     if (MultiplayerManager.IsHost)
     {
         foreach (PlayerSelector selector in selectorList.GetList())
         {
             if (!selector.locked)
             {
                 return(false);
             }
         }
         return(true);
     }
     return(false);
 }
Пример #2
0
 public BasePlayer GetPlayerWithColliderID(long colliderId)
 {
     foreach (BasePlayer player in players.GetList())
     {
         if (player.interacterCollider.GetInstanceID() == colliderId)
         {
             return(player);
         }
     }
     return(null);
 }