/// <summary> /// updates the cannon /// </summary> /// <seealso cref="Cannon.Update"/> private void CannonUpdate() { //attempts to shoot cannon if player has bullets is pressing left click and can cantrolle shooting Cannon.Active = Mouse.GetState().LeftButton == ButtonState.Pressed && canControlShooting && GameScene.AreAnyBulletsLeft(); //updates cannon with mouse position Cannon.Update(BasePosition, BaseRotation, Tools.TrueMousePos); }