void GStateNewGame::update(const double dt_){ this->passedTime += dt_; handleSelectorMenu(); std::array<bool, GameKeys::MAX> keyStates = Game::instance().getInput(); if(keyStates[GameKeys::ESCAPE] == true){ Game::instance().setState(Game::GStates::MENU); } }
void Game::updatePause(){ handleSelectorMenu(); }