コード例 #1
0
 // Use this for initialization
 void Start()
 {
     popCounter = FindObjectOfType <PopulationController>();
     popCounter.IncreasePopulationSize(maxPeopleInTheHouse);
 }
コード例 #2
0
 private void OnDestroy()
 {
     popCounter.IncreasePopulationSize(-maxPeopleInTheHouse);
 }