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