// 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); }
public BasePlayer GetPlayerWithColliderID(long colliderId) { foreach (BasePlayer player in players.GetList()) { if (player.interacterCollider.GetInstanceID() == colliderId) { return(player); } } return(null); }