private void OnSpriteDestroyedByShot(CSprite aDestroyed, CShotSprite aDestroying) { //var aGemEnum = this.GemPropability.Next(); var aGemEnum = CGemEnum.Collectable; this.CreateGemNullable(aGemEnum, aDestroyed.WorldPos.Value); }
internal void OnShotHit(CShotSprite aShotSprite) { if (!this.Destroyed) { this.Destroyed = true; this.IsHiddenInWorld = true; this.World.OnDestroyedByShot(this, aShotSprite); } }