示例#1
0
    private IEnumerator CheckingDisksIdle()
    {
        bool isIdle = false;

        while (!isIdle)
        {
            isIdle = m_DiskManager.CanNextTurn();
            yield return(new WaitForEndOfFrame());
        }

        if (GameSession.Instance.isGameEnd)
        {
            StopAllCoroutines();
            yield return(null);
        }

        m_TeamManager.playerSessions[m_CurrentTurn].RpcStartTurn();

        m_CurrentTurn++;

        if (m_CurrentTurn > 1)
        {
            m_CurrentTurn = 0;
        }

        StartCoroutine(RunningTurnTime());
    }