Ejemplo n.º 1
0
 public void SelectWonderDebug()
 {
     for (int i = 0; i < 8; i++)
     {
         player1.AddWonder(Instantiate(wondersAvialable[i], Vector3.zero, Quaternion.identity));
     }
     for (int i = 4; i < 8; i++)
     {
         player2.AddWonder(Instantiate(wondersAvialable[i], Vector3.zero, Quaternion.identity));
     }
 }
Ejemplo n.º 2
0
 public void SelectWonder(S_Wonder wonder)
 {
     currentPlayer.AddWonder(wonder.gameObject);
     if (currentPlayer == player1 && currentPlayer.wonders.Count == 2)
     {
         NextTurn();
     }
     if (currentPlayer == player2 && currentPlayer.wonders.Count == 4)
     {
         NextTurn();
     }
     if (currentPlayer == player2 && currentPlayer.wonders.Count == 2)
     {
         DisplayWondersSelection();
     }
     if (currentPlayer == player1 && currentPlayer.wonders.Count == 4)
     {
         back.Disable();
     }
 }