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)); } }
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(); } }