Hazel
Hazel copied to clipboard
OnCreate() need invoke after all the ScriptEntities added into "s_Data->EntityInstances"
When i want get an entity by "FindEntityByName()" in "OnCreate()" function, there will be a promblem that it would miss the instance from the function: "void ScriptEngine::OnCreateEntity(Entity entity)", because the "InvokeOnCreate()" will excute during every loop, so i think the invoke function need another way to do.