Example #1
0
 /// <summary>プレイヤの手番の順番をシャッフル</summary>
 private void shufflePlayerTurn(Action aCallback)
 {
     int[] tTurn = new int[mElement.mPlayerStatus.Length];
     for (int i = 0; i < mElement.mPlayerStatus.Length; i++)
     {
         tTurn[i] = i;
     }
     tTurn = tTurn.OrderBy(i => Guid.NewGuid()).ToArray();
     GameAnimation.playerShuffle(mElement.mPlayerStatusDisplay, mElement.mPlayerStatus, tTurn, () => {
         for (int i = 0; i < mElement.mPlayerStatus.Length; i++)
         {
             //結果をstatusに適用
             mElement.mPlayerStatus[tTurn[i]].mTurn = i;
             mTurn = tTurn;
         }
         aCallback();
     });
 }