private void CheckIfGameOver() { if (_playerModel.IsFoodEmpty) { OnFoodEmpty.Invoke(this, null); } }
void Update() { if (CalorieDisplay != null) { CalorieDisplay.Text = State.Calorie.ToString(); } if (IsEmpty) { OnFoodEmpty?.Invoke(this); } }
private void CheckIfGameOver() { if (_playerModel.IsFoodEmpty) { OnFoodEmpty.Invoke(this, null); } }
void Update() { if (CalorieDisplay != null) { CalorieDisplay.Text = State.Calorie.ToString(); } if (IsEmpty) { OnFoodEmpty?.Invoke(this); } }