ScrollingShooter.PlayerShip.TriggerRailgun C# (CSharp) Method

TriggerRailgun() private method

Fires the railgun sabot round from the ship, corresponding to the railgun powerup
private TriggerRailgun ( ) : void
return void
        void TriggerRailgun()
        {
            ScrollingShooterGame.GameObjectManager.CreateProjectile(ProjectileType.RGSabot,
                new Vector2(position.X + (Bounds.Width / 2) - 4, position.Y));
            //Simuated recoil
            position.Y += 10;
        }