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> (); }
void Start() { parentMenu = GetComponentInParent <TowerMenuMaster> (); money = parentMenu.money.GetComponent <Money> (); currentMoney = money.moneyMaster; }