public void ReleaseMainLuaRunner() { if (MainLuaRunner != null) { MainLuaRunner.Release(); MainLuaRunner = null; } }
public void InitMainLuaRunner() { MainLuaRunner = new LuaRunner(); if (GameCenter.s_ConfigManager.GlobalGameConfig.LuaScriptLoadMode == GameConfig.LuaScriptLoadModeEnum.RawFileMode) { MainLuaRunner.Init(OnRawFileModeLoad); } else { MainLuaRunner.Init(OnBundleModeLoad); } }