#include "SingleplayerGameState.h" void SingleplayerGameState::OnAwake() { //tutorialGame->UpdateGame(dt); } PushdownState::PushdownResult SingleplayerGameState::OnUpdate(float dt, PushdownState** pushFunc) { level1Game->UpdateGame(dt); if (level1Game->IsOver() || Window::GetKeyboard()->KeyPressed(KeyboardKeys::ESCAPE)) { //delete level1Game; return PushdownState::PushdownResult::Pop; } return PushdownState::PushdownResult::NoChange; }