Exemple #1
0
 public void Buy()
 {
     if (!owned)
     {
         current.owned = owned = true;
         current.gameObject.GetComponent <AddMoneyOnSecond>().enabled = true;
         CityManager.ClaimBuilding(current);
     }
     else
     {
         ClearBuilding();
     }
 }