Exemplo n.º 1
0
 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;
     }
 }