Skip to content

Commit

Permalink
Initialize background scripts on toggle
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
andybak committed Mar 17, 2023
1 parent 89f9bb6 commit b5813e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Scripts/API/Lua/LuaManager.cs
Expand Up @@ -792,6 +792,8 @@ public bool ToggleBackgroundScript(string scriptToToggle)
}
}
m_ActiveBackgroundScripts[scriptToToggle] = Scripts[ApiCategory.BackgroundScript][scriptToToggle];
var script = Scripts[ApiCategory.BackgroundScript][scriptToToggle];
InitScript(script);
return true;
}

Expand Down

0 comments on commit b5813e2

Please sign in to comment.