public static GameServerMatchState Get() { if (m_instance == null) { m_instance = new GameServerMatchState(); } return(m_instance); }
public void SetReadyToStart(INetworkAddress address) { var clientInfo = GetClientInfoByAddress(address); if (clientInfo == null) { return; } clientInfo.IsReadyToStart = true; if (ClientsReady()) { m_state = GameServerMatchState.Get(); } }