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