示例#1
0
 public void Harvest()
 {
     if (_harvest)
     {
         _foodCount += _countPortions;
         _harvest    = false;
         _chosenVegetable.ViewIcon();
         FoodChanger?.Invoke(_foodCount);
     }
 }
示例#2
0
    public bool TakeFood()
    {
        if (_foodCount > 0)
        {
            _foodCount -= 1;
            FoodChanger?.Invoke(_foodCount);

            return(true);
        }
        else
        {
            return(false);
        }
    }
示例#3
0
 private void Start()
 {
     FoodChanger?.Invoke(_foodCount);
 }