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