// Update is called once per frame void Update() { if (GameManager.Instance.GameStarted) { var inputDevice = InputManager.ActiveDevice; GameManager.Instance.FlowThrust(inputDevice.LeftStick.X, inputDevice.LeftTrigger.Value); horizontalAxis1 = inputDevice.LeftStick.X; verticalAxis1 = inputDevice.LeftStick.Y; horizontalAxis2 = inputDevice.RightStick.X; if (InvertYAxis) { verticalAxis2 = inputDevice.RightStick.Y; } else { verticalAxis2 = inputDevice.RightStick.Y * -1; } if (inputDevice.RightTrigger.WasPressed) { gunSystem.ShootStart(); } if (inputDevice.RightTrigger.WasReleased) { gunSystem.ShootEnd(); } if (inputDevice.LeftTrigger.WasPressed) { Thrusting = true; } if (inputDevice.LeftTrigger.WasReleased) { Thrusting = false; } } }