예제 #1
0
        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();
        }
예제 #2
0
        public void Destroy()
        {
            LuaPanelMgr = null;

            mLuaState.Dispose();
        }