protected override void ShootingPattern(GameTime gameTime) { if (IsFiring) { beamModule.Activate(Position, gameTime); } }
protected override void ShootingPattern(GameTime gameTime) { if (IsFiring) { float offset = 16; Vector2 leftBeamPos = new Vector2(PositionX - offset, PositionY); Vector2 middleBeamPos = new Vector2(PositionX, PositionY); Vector2 rightBeamPos = new Vector2(PositionX + offset, PositionY); beamModuleLeft.Activate(leftBeamPos, gameTime); beamModuleMiddle.Activate(middleBeamPos, gameTime); beamModuleRight.Activate(rightBeamPos, gameTime); } }