public void Close() { loop.Destroy(); loop = null; lua.Dispose(); lua = null; loader = null; }
protected override void AwakeEx() { base.AwakeEx(); loader = new LuaLoaderHelper(); lua = new LuaState(); OpenLibs(); lua.LuaSetTop(0); LuaBinder.Bind(lua); DelegateFactory.Init(); LuaCoroutine.Register(lua, this); }
protected override void AwakeEx() { base.AwakeEx(); //初始化LuaMgr; loader = new LuaLoaderHelper();//TODO:Lua AssetBundle的使用; lua = new LuaState(); this.OpenLibs(); lua.LuaSetTop(0); LuaBinder.Bind(lua); DelegateFactory.Init(); LuaCoroutine.Register(lua, this); }