void Start() { _building = GetComponent <Building>(); _resourceData = _building.Player.ResourceData; _resourceData.AmendMaxFood(_foodValue); }
private void OnDestroy() { _resourceData.AmendMaxFood(-_foodValue); }
private void Start() { _building = GetComponent <Building>(); _resourceData = _building.Player.ResourceData; _resourceData.AmendMaxFood(12); }