Beispiel #1
0
        public override void Update(GameTime gameTime)
        {
            if (Triggered)
            {
                PauseTime += gameTime.ElapsedGameTime.Milliseconds;
                if (ParentShip.FreezeTime > 0)
                {
                    Triggered = false;
                    ParentShip.ShakeScreen(50);
                    ParentShip.FreezeTime = 500;
                }
                else if (PauseTime > MaxPauseTime && ParentShip.shipAbility.ShipCanShoot())
                {
                    Activate();
                    Triggered = false;
                }
            }

            base.Update(gameTime);
        }