示例#1
0
 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>();
 }
示例#3
0
 void Start()
 {
     _handler = Stats.GetComponent <handleStats>();
 }