public void Init() { mLuaState = new LuaEnv(); mLuaState.AddLoader(HandleLoad); mLuaState.DoString("require('script.init')"); NewLuaPanelMgr newFunc = mLuaState.Global.GetInPath <NewLuaPanelMgr>("supercline.lua.PanelMgr"); LuaPanelMgr = newFunc(); // TO CLine: test main, u can add another interface to do. LuaPanelMgr.Main(); }
public void Destroy() { LuaPanelMgr = null; mLuaState.Dispose(); }