Fixed scripts OnUpdate not being called in play mode

This commit is contained in:
Simon Lübeß
2023-12-13 14:01:23 +01:00
parent 4a2635a8c3
commit ed756f5847
2 changed files with 11 additions and 25 deletions
+3 -3
View File
@@ -379,9 +379,9 @@ namespace GlitchyEditor
switch (_sceneState)
{
case .Edit:
updateMode = .Editor;
updateMode = .Scripts | .EditMode;
case .Play:
updateMode = .Runtime;
updateMode = .Scripts | .Physics;
case .Simulate:
updateMode = .Physics;
}
@@ -398,7 +398,7 @@ namespace GlitchyEditor
*/
GameTime gt = null;
if (updateMode == .Editor)
if (updateMode.HasFlag(.EditMode))
{
gt = gameTime;
}