Example #1
0
 void Start()
 {
     //find tower menus and get script componenets
     towerButtonsMenu = GameObject.Find("TowerBuildMenu");
     tbm           = towerButtonsMenu.GetComponent <BuildMenuMaster> ();
     towerEditMenu = GameObject.Find("TowerEditMenu");
     tem           = towerEditMenu.GetComponent <TowerMenuMaster> ();
 }
Example #2
0
 void Start()
 {
     parentMenu   = GetComponentInParent <BuildMenuMaster> ();
     money        = parentMenu.money.GetComponent <Money> ();
     currentMoney = money.moneyMaster;
     clickable    = true;
     if (cancelButton == false)
     {
         tm.text = towerCost.ToString();
     }
 }