Пример #1
0
        public void Dispose()
        {
            this._pathManager.Dispose();
            this._buffManager.Dispose();
            this._entityManager.Dispose();            //顺序很重要
            if (this._script != null)
            {
                this._script.Call(Script.S_ON_BATTLE_DESTROIED);
                this._script.Dispose();
                this._script = null;
            }
            this._timer0.Dispose();
            this._luaEnv = null;
            this.data    = null;

            SyncEventHelper.DestroyBattle();
        }