Exemple #1
0
        public void Close()
        {
            loop.Destroy();
            loop = null;

            lua.Dispose();
            lua    = null;
            loader = null;
        }
Exemple #2
0
 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);
 }