game(scripts/gm): finalise states
one scene chump
This commit is contained in:
parent
d8956596ef
commit
d4a9fe0ae5
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* author: mark joshwel
|
* author: mark joshwel
|
||||||
* date: 29/5/2024
|
* date: 11/8/2024
|
||||||
* description: game manager singleton for a single source of truth state management
|
* description: game manager singleton for a single source of truth state management
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -20,10 +20,9 @@ public enum DisplayState
|
||||||
Game,
|
Game,
|
||||||
ScreenMainMenu,
|
ScreenMainMenu,
|
||||||
ScreenOptionsMenu,
|
ScreenOptionsMenu,
|
||||||
ScreenCreditsMenu,
|
OverlayPauseMenu,
|
||||||
ScreenPauseMenu,
|
OverlayCompleteUnderTimeMenu,
|
||||||
ScreenCaughtMenu,
|
OverlayFailedOverTimeMenu,
|
||||||
ScreenEscapedMenu,
|
|
||||||
UnassociatedState
|
UnassociatedState
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,9 +213,6 @@ public void SetDisplayState(DisplayState displayState)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.Log($"GameManager.SetDisplayState({displayState}): pre-pause helper");
|
Debug.Log($"GameManager.SetDisplayState({displayState}): pre-pause helper");
|
||||||
// if we're transitioning to the main menu, load the main menu scene
|
|
||||||
if (transitioning && displayState == DisplayState.ScreenMainMenu)
|
|
||||||
SceneManager.LoadScene("S2 World");
|
|
||||||
PauseGameHelper(displayState);
|
PauseGameHelper(displayState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue