Platform should be initialized in the Boot, before everything else. Got rid of the coroutines
This commit is contained in:
@@ -95,10 +95,7 @@ namespace Nox.Core {
|
||||
}
|
||||
|
||||
private void ChangeApplicationState(GameState newGameState) {
|
||||
if(currentState != null) {
|
||||
currentState.ExitGameState();
|
||||
}
|
||||
|
||||
currentState?.ExitGameState();
|
||||
currentState = applicationStates[newGameState];
|
||||
currentState.EnterGameState();
|
||||
currentStateType = newGameState;
|
||||
|
||||
Reference in New Issue
Block a user