void Update() { if (Input.GetKeyDown(KeyCode.Space)) { ResetWorld(); } if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } if (Input.GetKeyDown(KeyCode.A)) { food.CreateFood(world.GetRandomWalkableTile()); } if (food.TotalFoodNumber() < 5) { food.CreateFood(world.GetRandomWalkableTile()); } }