Ejemplo n.º 1
0
        public override void Hit(BaseBullet bullet, int tickCount)
        {
            if (!isDescending)
            {
                base.Hit(bullet, tickCount);

                wasHit = true;
            }
        }
Ejemplo n.º 2
0
        public override void Hit(BaseBullet bullet, int tickCount)
        {
            if (!(isDisassembling || isAssembling))
            {
                base.Hit(bullet, tickCount);

                if (this.Lives > 0)
                {
                    isDisassembling = true;
                }
            }
        }
Ejemplo n.º 3
0
        public void Hit(BaseBullet bullet)
        {
            var temp = bullet.Damage;

            bullet.Damage -= this.Lives;
            this.lives    -= temp;
            if (this.lives <= 0)
            {
                state = interMediateState;
                NewMessenger.Default.Send(new BonusStateChangedMessage {
                    Bonus = this
                });
            }
        }
Ejemplo n.º 4
0
 public override void Hit(BaseBullet bullet, int tickCount)
 {
     //a bullet was hit? Nothing happens.
 }