Implement Game.IsClosing (#3538)

This commit is contained in:
Conna Wiles
2025-12-03 10:35:16 +00:00
committed by GitHub
parent 14da06cd9d
commit 3efe8ef209
2 changed files with 7 additions and 0 deletions

View File

@@ -70,9 +70,12 @@ public static partial class Game
internal static void Shutdown()
{
IsClosing = true;
IsPlaying = false;
ActiveScene?.Destroy();
ActiveScene = null;
IsClosing = false;
}
}

View File

@@ -295,6 +295,8 @@ public static class EditorScene
public static void Stop()
{
Game.IsClosing = true;
SceneEditorSession.Active.StopPlaying();
Game.IsPlaying = false;
@@ -311,6 +313,8 @@ public static class EditorScene
Game.ActiveScene = null;
}
Game.IsClosing = false;
Sound.StopAll( 0.5f );
SceneEditorTick();