コード例 #1
0
ファイル: Game.cs プロジェクト: Horovtom/metro-board-game
 private void DrawForPlayer(int i)
 {
     if (tileRepository.LeftInStack() != 0)
     {
         playersHands[i] = tileRepository.PopStack();
         Debug.Log("Player " + i + " has drawn tile: " + playersHands[i]);
     }
     else
     {
         Debug.LogError("Cannot draw into hand of the last player, because the stack is empty!");
         playersHands[i] = null;
     }
 }