Exemplo n.º 1
0
 void Purchase(LandTile Current)
 {
     Current.owner = AIpla;
     EnemyTurn     = false;
     Current.GetComponent <LandTile>().hire1 = AIpla;
     Current.GetComponent <LandTile>().hire3 = AIpla;
     Tiles++;
     Current.GetComponent <SpriteRenderer>().sprite = AISprite;
 }
Exemplo n.º 2
0
 // Update is called once per frame
 public void ConfirmButton()
 {
     if (player.Money > curTile.cost)
     {
         player.Money -= curTile.cost;
         curTile.GetComponent <SpriteRenderer> ().color = Color.blue;
         curTile.ConfirmationWindowConfirm();
         player.income += curTile.income;
         gameObject.SetActive(false);
     }
 }