Пример #1
0
    public static GameServerMatchState Get()
    {
        if (m_instance == null)
        {
            m_instance = new GameServerMatchState();
        }

        return(m_instance);
    }
Пример #2
0
    public void SetReadyToStart(INetworkAddress address)
    {
        var clientInfo = GetClientInfoByAddress(address);

        if (clientInfo == null)
        {
            return;
        }

        clientInfo.IsReadyToStart = true;

        if (ClientsReady())
        {
            m_state = GameServerMatchState.Get();
        }
    }