コード例 #1
0
ファイル: Building.cs プロジェクト: SeanCBlue652/HackKu2020
 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>();
 }
コード例 #2
0
 void Start()
 {
     _stats           = GameObject.Find("StatsHandler").GetComponentInChildren <handleStats>();
     placementManager = GameObject.Find("PlacementHandler").GetComponentInChildren <mousemanager>();
 }
コード例 #3
0
 void Start()
 {
     _handler = Stats.GetComponent <handleStats>();
 }