CSC8503_Advanced_Game_Technologies / CSC8503 / CSC8503Common / MultiplayerGameState.cpp
MultiplayerGameState.cpp
Raw
#include "MultiplayerGameState.h"
void MultiplayerGameState::OnAwake() {
	//tutorialGame->UpdateGame(dt);
}

PushdownState::PushdownResult MultiplayerGameState::OnUpdate(float dt, PushdownState** pushFunc) {
	multiGame->UpdateGame(dt);
	if (multiGame->IsOver() || Window::GetKeyboard()->KeyPressed(KeyboardKeys::ESCAPE)) {
		return PushdownState::PushdownResult::Pop;
	}
	return PushdownState::PushdownResult::NoChange;
}