void Start()
 {
     button = GetComponent <Button>();
     button.image.sprite = off;
     sizeScript          = prefab.GetComponent <SizeScript>();
     manager             = ManagerStatistic.Instance;
 }
Esempio n. 2
0
 private int getPrice(SizeScript sizeScript)
 {
     return(sizeScript.isOwned ? (int)(sizeScript.prize * 0.5) : sizeScript.prize * 2);
 }
Esempio n. 3
0
 private string getStringForBuilding(int price, SizeScript sizeScript)
 {
     return(sizeScript.isOwned ? "Funds returned: " + price.ToString() : "Destroying cost: " + price.ToString());
 }