Exemple #1
0
 void UpdateHintBool()
 {
     is_stick_hold = stick_ctrl.IsHoldStick();
     is_rolling    = stick_ctrl.IsHoldStick() &&
                     (Mathf.Abs(stick_ctrl.NowRotate().z) > 10f);
     is_pitching = stick_ctrl.IsHoldStick() &&
                   (Mathf.Abs(stick_ctrl.NowRotate().x) > 10f);
     is_yawing = user_input.IsGripPress(UserInput.HAND_ID.Left) ||
                 user_input.IsGripPress(UserInput.HAND_ID.Right);
     is_accelerating = user_input.IsTrackpadPress(UserInput.HAND_ID.Left) &&
                       (plane_ctrl.SpeedChange() > 15f);
     is_decelerating = user_input.IsTrackpadPress(UserInput.HAND_ID.Left) &&
                       (plane_ctrl.SpeedChange() < -15f);
     is_fire = user_input.IsTriggerPress(UserInput.HAND_ID.Left) ||
               user_input.IsTriggerPress(UserInput.HAND_ID.Right);
     is_pause_press = GameController.GetGameSTAT() == GameController.GAME_STAT.Pause;
 }