mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Remove native script component
This commit is contained in:
@@ -622,19 +622,6 @@ namespace GlitchyEngine.World
|
||||
{
|
||||
Debug.Profiler.ProfileScope!("Update scripts");
|
||||
|
||||
// Run scripts
|
||||
for (var (entity, script) in _ecsWorld.Enumerate<NativeScriptComponent>())
|
||||
{
|
||||
if (script.Instance == null)
|
||||
{
|
||||
script.Instance = script.InstantiateFunction();
|
||||
script.Instance._entity = Entity(entity, this);
|
||||
script.Instance.[Friend]OnCreate();
|
||||
}
|
||||
|
||||
script.Instance.[Friend]OnUpdate(gameTime);
|
||||
}
|
||||
|
||||
// Run scripts
|
||||
for (let (entity, script) in _ecsWorld.Enumerate<ScriptComponent>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user