Add LateFixedUpdate event for C# scripts

This commit is contained in:
2023-05-11 21:09:33 +03:00
parent 558a7d99ff
commit de7c6483e0
4 changed files with 34 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ Script::Script(const SpawnParams& params)
, _tickFixedUpdate(false)
, _tickUpdate(false)
, _tickLateUpdate(false)
, _tickLateFixedUpdate(false)
, _wasStartCalled(false)
, _wasEnableCalled(false)
{
@@ -181,6 +182,7 @@ void Script::SetupType()
_tickUpdate |= type.Script.ScriptVTable[8] != nullptr;
_tickLateUpdate |= type.Script.ScriptVTable[9] != nullptr;
_tickFixedUpdate |= type.Script.ScriptVTable[10] != nullptr;
_tickLateFixedUpdate |= type.Script.ScriptVTable[11] != nullptr;
}
typeHandle = type.GetBaseType();
}