public Building(GameObject Buldingpath, float Bprice, float Bpower, float Bpop, float Bincome, GameObject _handleStats) { theBuilding = Buldingpath; buildingPrice = Bprice; buildingPower = Bpower; buildingPopulation = Bpop; buildingIncome = Bincome; _stats = _handleStats.GetComponent <handleStats>(); }
void Start() { _stats = GameObject.Find("StatsHandler").GetComponentInChildren <handleStats>(); placementManager = GameObject.Find("PlacementHandler").GetComponentInChildren <mousemanager>(); }
void Start() { _handler = Stats.GetComponent <handleStats>(); }