mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Added SceneSwitching, Better font rendering, DOM inspector, Font-family prop
This commit is contained in:
@@ -227,10 +227,13 @@ namespace Nuake
|
||||
if (netScriptComponent.ScriptPath.empty())
|
||||
continue;
|
||||
|
||||
// Creates an instance of the entity script in C#
|
||||
auto entity = Entity{ e, m_Scene };
|
||||
auto scriptInstance = scriptingEngineNet.GetEntityScript(entity);
|
||||
scriptInstance.InvokeMethod("OnDestroy");
|
||||
if (entity.IsValid() && scriptingEngineNet.HasEntityScriptInstance(entity))
|
||||
{
|
||||
Logger::Log(entity.GetComponent<NameComponent>().Name);
|
||||
auto scriptInstance = scriptingEngineNet.GetEntityScript(entity);
|
||||
scriptInstance.InvokeMethod("OnDestroy");
|
||||
}
|
||||
}
|
||||
|
||||
ScriptingEngine::Close();
|
||||
|
||||
Reference in New Issue
Block a user