public override void Update(GameTime gameTime) { if (_state == 0) { _menu.CheckHoveringMouse(Window); } else if (_state == 1) { if (gameTime.InGameTime.Minute == 00 && _areResourcesUpdated == false) { _experienceManager.CheckLevel(); //Console.WriteLine("--------------------------------------"); //Console.WriteLine("Pop: {0}", _resourcesManager.NbResources["population"]); //Console.WriteLine("lvl : {0}", _experienceManager.CheckLevel()); //Console.WriteLine("{0}%", _experienceManager.GetPercentage()); _resourcesManager.UpdateResources(); _areResourcesUpdated = true; } else if (gameTime.InGameTime.Minute != 00 && _areResourcesUpdated == true) { _areResourcesUpdated = false; } } }