Пример #1
0
        public void Release()
        {
            if (_Disposed || name == null)
            {
                return;
            }

            --count;

            if (count > 0)
            {
                return;
            }

            if (name != null)
            {
                LuaScriptMgr mgr = LuaScriptMgr.GetMgrFromLuaState(_Interpreter.L);

                if (mgr != null)
                {
                    mgr.RemoveLuaRes(name);
                }
            }

            Dispose();
        }
Пример #2
0
        public void Release()
        {
            if (_Disposed || name == null)
            {
                Dispose();
                return;
            }

            --count;

            if (count > 0)
            {
                return;
            }

            if (name != null)
            {
                LuaScriptMgr mgr = LuaScriptMgr.Instance;

                if (mgr != null)
                {
                    mgr.RemoveLuaRes(name);
                }
            }

            Dispose();
        }
Пример #3
0
 public void Release()
 {
     if (this._Disposed || this.name == null)
     {
         this.Dispose();
         return;
     }
     this.count--;
     if (this.count > 0)
     {
         return;
     }
     if (this.name != null)
     {
         LuaScriptMgr mgrFromLuaState = LuaScriptMgr.GetMgrFromLuaState(this._Interpreter.L);
         if (mgrFromLuaState != null)
         {
             mgrFromLuaState.RemoveLuaRes(this.name);
         }
     }
     this.Dispose();
 }