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

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

                if (this.Lives > 0)
                {
                    isDisassembling = true;
                }
            }
        }
Example #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
                });
            }
        }
 public override void Hit(BaseBullet bullet, int tickCount)
 {
     //a bullet was hit? Nothing happens.
 }