コード例 #1
0
 public void MoveToken()
 {
     if (mYellowCanMove && GameManagerScript.mGameManager.mDiceRolled == true)
     {
         mYellowToken.CircleDisable();
         mPlayerOutIndex = 0;
         mMoveToken      = StartCoroutine(IMoveToken());
         GameManagerScript.mGameManager.mDiceRolled = false;
     }
 }
コード例 #2
0
    IEnumerator IMoveToNextPlayer()
    {
        yield return(new WaitForSeconds(.75f));

        mRedToken.CircleDisable();
        mBlueToken.CircleDisable();
        mYellowToken.CircleDisable();
        mGreenToken.CircleDisable();
        if (mLastToken == true)
        {
            mPlayerIndex = 0;
            StartGame(mPlayingTokens[mPlayerIndex]);
        }
        else
        {
            MoveToNextPlayer();
        }
    }