public void Harvest() { if (_harvest) { _foodCount += _countPortions; _harvest = false; _chosenVegetable.ViewIcon(); FoodChanger?.Invoke(_foodCount); } }
public bool TakeFood() { if (_foodCount > 0) { _foodCount -= 1; FoodChanger?.Invoke(_foodCount); return(true); } else { return(false); } }
private void Start() { FoodChanger?.Invoke(_foodCount); }