Ejemplo n.º 1
0
        private void OnSpriteDestroyedByShot(CSprite aDestroyed, CShotSprite aDestroying)
        {
            //var aGemEnum = this.GemPropability.Next();
            var aGemEnum = CGemEnum.Collectable;

            this.CreateGemNullable(aGemEnum, aDestroyed.WorldPos.Value);
        }
Ejemplo n.º 2
0
 internal void OnShotHit(CShotSprite aShotSprite)
 {
     if (!this.Destroyed)
     {
         this.Destroyed       = true;
         this.IsHiddenInWorld = true;
         this.World.OnDestroyedByShot(this, aShotSprite);
     }
 }