예제 #1
0
 private void NextTurn()
 {
     currentPlayer.EndTurn();
     currentPlayer = (currentPlayer == player1) ? player2 : player1;
     currentPlayer.YourTurn();
     playerTurnCoin.SetPlayerTurn(currentPlayer.index);
 }
예제 #2
0
 void Start()
 {
     SelectWonderDebug();
     //DisplayWondersSelection();
     currentPlayer = player1;
     currentPlayer.YourTurn();
     player2.EndTurn();
     for (int i = 0; i < 3; i++)
     {
         cardsFromAge.Add(new List <GameObject>());
     }
     for (int age = 1; age < 4; age++)
     {
         Object[] loaded = Resources.LoadAll("Age" + age);
         foreach (GameObject card in loaded)
         {
             cardsFromAge[age - 1].Add(card);
         }
     }
     setCardForAge(1);
 }