mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed scripts OnUpdate not being called in play mode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user