Esempio n. 1
0
 private void CheckIfGameOver()
 {
     if (_playerModel.IsFoodEmpty)
     {
         OnFoodEmpty.Invoke(this, null);
     }
 }
Esempio n. 2
0
        void Update()
        {
            if (CalorieDisplay != null)
            {
                CalorieDisplay.Text = State.Calorie.ToString();
            }

            if (IsEmpty)
            {
                OnFoodEmpty?.Invoke(this);
            }
        }