feat: add pauzing of the running game

This commit is contained in:
2026-10-22 18:10:23 +02:00
parent e5d37965a1
commit dde2c7daf9
6 changed files with 69 additions and 10 deletions
+8
View File
@@ -304,6 +304,14 @@ namespace {
check(counter->updates == 1 && counter->fixedUpdates == 1 && counter->lateUpdates == 1,
"play mode must tick components");
sceneManager.SetPaused(true);
sceneManager.Update(0.1f);
sceneManager.FixedUpdate(0.1f);
sceneManager.LateUpdate(0.1f);
sceneManager.SetPaused(false);
check(counter->updates == 1 && counter->fixedUpdates == 1 && counter->lateUpdates == 1,
"a paused game must not tick components");
sceneManager.Destroy();
}
}