void UpdateMe() { if (dispensePressed) { Debug.Log("HUngry" + ((int)(5 * timer.GetHungriness())).ToString() + " " + timer.GetHungriness().ToString()); if (CorrectFood((int)(5 * hive.GetAgrressivinesPercentage()), (int)(5 * hive.GetPopulationPercentage()), (int)(5 * timer.GetHungriness()))) { Debug.Log("correct food"); hive.DecreaseAggressiveness(); timer.Eat(); } else { Debug.Log("wrong food"); hive.IncreaseAggressiveness(); } dispensePressed = false; } }