Example #1
0
 public void MoveToken()
 {
     if (mRedCanMove && GameManagerScript.mGameManager.mDiceRolled == true)
     {
         mRedToken.CircleDisable();
         mPlayerOutIndex = 0;
         mMoveToken      = StartCoroutine(IMoveToken());
         GameManagerScript.mGameManager.mDiceRolled = false;
     }
 }
Example #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();
        }
    }