Beispiel #1
0
 void Start()
 {
     _building     = GetComponent <Building>();
     _resourceData = _building.Player.ResourceData;
     _resourceData.AmendMaxFood(_foodValue);
 }
Beispiel #2
0
 private void OnDestroy()
 {
     _resourceData.AmendMaxFood(-_foodValue);
 }
Beispiel #3
0
 private void Start()
 {
     _building     = GetComponent <Building>();
     _resourceData = _building.Player.ResourceData;
     _resourceData.AmendMaxFood(12);
 }