public void ChangeFood(int amount) { food += amount; if (amount > 0) { lastTimeFed = DateTime.Now; } if (food < 0) { PetManager.instance.Die(); } if (food > 20) { petController.Fine(); } if (food < 20) { petController.Hungry(); } else if (food > 100) { food = 100; } }