void Update() { if (agent.isActiveAndEnabled) { HandleState(); Vitals.ConsumeEnergy(0.8f); Fitness += 0.01f; } Vitals.ConsumeEnergy(agent.velocity.magnitude * GetHeight() * 0.001f); if (Vitals.IsStarving()) { Die(); } }