Cleanup Engine.h and made IsPlayMode a method

This commit is contained in:
Antoine Pilote
2023-07-10 13:22:03 -04:00
parent 7599ed034b
commit cddc9f6c21
7 changed files with 61 additions and 53 deletions

View File

@@ -40,7 +40,7 @@ namespace Nuake {
void ScriptingSystem::Update(Timestep ts)
{
if (!Engine::IsPlayMode)
if (!Engine::IsPlayMode())
return;
auto entities = m_Scene->m_Registry.view<WrenScriptComponent>();