void checkForStartButtonUpdate() { if (OVRInput.GetDown(OVRInput.RawButton.Start)) { startButtonAttack.releaseFunction(OVRInput.Controller.RTouch); } }
void checkTriggersUpdate() { if (OVRInput.Get(OVRInput.RawButton.RIndexTrigger)) { rIndexTriggerDown = true; } else if (OVRInput.GetUp(OVRInput.RawButton.RIndexTrigger)) { rIndexTriggerDown = false; rightTriggerAttack.releaseFunction(OVRInput.Controller.RTouch); } if (rIndexTriggerDown) { rightTriggerAttack.holdFunction(OVRInput.Controller.RTouch); } if (OVRInput.Get(OVRInput.RawButton.LIndexTrigger)) { lIndexTriggerDown = true; } else if (OVRInput.GetUp(OVRInput.RawButton.LIndexTrigger)) { lIndexTriggerDown = false; leftTriggerAttack.releaseFunction(OVRInput.Controller.LTouch); } if (lIndexTriggerDown) { leftTriggerAttack.holdFunction(OVRInput.Controller.LTouch); } }
void checkHandTriggersUpdate() { // Check if the user wants to switch the defense they're placing if (OVRInput.GetDown(OVRInput.RawButton.RHandTrigger)) { rHandTriggerDown = true; } else if (OVRInput.GetUp(OVRInput.RawButton.RHandTrigger)) { rHandTriggerDown = false; handTriggerAttack.releaseFunction(OVRInput.Controller.RTouch); } if (rHandTriggerDown) { handTriggerAttack.holdFunction(OVRInput.Controller.RTouch); } }
void checkABButtonUpdate() { if (OVRInput.Get(OVRInput.RawButton.B)) { bButtonAttack.holdFunction(OVRInput.Controller.RTouch); } else if (OVRInput.GetUp(OVRInput.RawButton.B)) { bButtonAttack.releaseFunction(OVRInput.Controller.RTouch); } if (OVRInput.Get(OVRInput.RawButton.A)) { aButtonAttack.holdFunction(OVRInput.Controller.RTouch); } else if (OVRInput.GetUp(OVRInput.RawButton.A)) { aButtonAttack.releaseFunction(OVRInput.Controller.RTouch); } }