mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-04 11:35:06 +03:00
Moved callbacks to Update instead of FixedUpdate
This commit is contained in:
@@ -100,6 +100,8 @@ namespace Nuake
|
||||
auto scriptInstance = scriptingEngineNet.GetEntityScript(entity);
|
||||
scriptInstance.InvokeMethod("OnUpdate", ts.GetSeconds());
|
||||
}
|
||||
|
||||
DispatchPhysicCallbacks();
|
||||
}
|
||||
|
||||
void ScriptingSystem::FixedUpdate(Timestep ts)
|
||||
@@ -129,8 +131,6 @@ namespace Nuake
|
||||
auto scriptInstance = scriptingEngineNet.GetEntityScript(entity);
|
||||
scriptInstance.InvokeMethod("OnFixedUpdate", ts.GetSeconds());
|
||||
}
|
||||
|
||||
DispatchPhysicCallbacks();
|
||||
}
|
||||
|
||||
void ScriptingSystem::Exit()
|
||||
|
||||
Reference in New Issue
Block a user