Beispiel #1
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (!GameLoop.ApplicationClosing && _pool != null)
            {
                _pool.Purge(this);
            }
            if (this.OnKilled != null)
            {
                this.OnKilled(this, System.EventArgs.Empty);
            }
        }
Beispiel #2
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (!GameLoopEntry.ApplicationClosing && _pool != null)
            {
                _pool.Purge(this);
            }
        }