Exemple #1
0
        public override void dispose()
        {
            if (this.mapWalls != null)
            {
                this.mapWalls.dispose();
            }
            if (this.mapFloor != null)
            {
                this.mapFloor.dispose();
            }
            if (this.player != null)
            {
                this.player.dispose();
            }
            if (this.guards != null)
            {
                foreach (Guard guard in this.guards)
                {
                    guard.dispose();
                }
            }
            if (this.treasures != null)
            {
                foreach (Treasure treasure in this.treasures)
                {
                    treasure.dispose();
                }
            }
            if (this.dumpsters != null)
            {
                foreach (Dumpster dumpster in this.dumpsters)
                {
                    dumpster.dispose();
                }
            }
            if (this.treasure != null)
            {
                this.treasure.dispose();
            }
            this.timer.dispose();
            this.dustEmitter.dispose();

            // sfxs

            /*
             * if (this.introSfx != null) {
             *      this.introSfx.Dispose();
             * }
             * if (this.payDaySfx != null) {
             *      this.payDaySfx.Dispose();
             * }
             * if (this.treasureSfx != null) {
             *      this.treasureSfx.Dispose();
             * }
             * if (this.guardDetectedSfx != null) {
             *      this.guardDetectedSfx.Dispose();
             * }
             * if (this.dumpsterCrashSfx != null) {
             *      this.dumpsterCrashSfx.Dispose();
             * }
             * if (this.dumpsterCloseSfx != null) {
             *      this.dumpsterCloseSfx.Dispose();
             * }*/

            // AI
            AIManager.getInstance().dispose();
        }
Exemple #2
0
 public void dispose()
 {
     cinematic.dispose();
 }