Ejemplo n.º 1
0
        public override void Init()
        {
            base.Init();

            RotationDelayTimer          = new Timer(140); // Delay in ms before the Cannon starts rotating after firing
            RotationDelayTimer.Elapsed += OnRotationDelayEnd;

            Weapon = new CannonWeapon(Game, this);
        }
Ejemplo n.º 2
0
        public override void Deinit()
        {
            base.Deinit();

            if (RotationDelayTimer != null)
            {
                RotationDelayTimer.Stop();
                RotationDelayTimer.Dispose();
                RotationDelayTimer = null;
            }

            Weapon.Deinit();
            Weapon = null;
        }
Ejemplo n.º 3
0
        public override void Deinit()
        {
            base.Deinit();

            if (RotationDelayTimer != null)
            {
                RotationDelayTimer.Stop();
                RotationDelayTimer.Dispose();
                RotationDelayTimer = null;
            }

            Weapon.Deinit();
            Weapon = null;
        }
Ejemplo n.º 4
0
        public override void Init()
        {
            base.Init();

            RotationDelayTimer = new Timer(140); // Delay in ms before the Cannon starts rotating after firing
            RotationDelayTimer.Elapsed += OnRotationDelayEnd;

            Weapon = new CannonWeapon(Game, this);
        }