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); }
public override void Deinit() { base.Deinit(); if (RotationDelayTimer != null) { RotationDelayTimer.Stop(); RotationDelayTimer.Dispose(); RotationDelayTimer = null; } Weapon.Deinit(); Weapon = null; }