RuningJumpProcess_Example.cs 763 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using ChivaXR;
  5. public class RuningJumpProcess_Example : MonoBehaviour
  6. {
  7. // Update is called once per frame
  8. void Update()
  9. {
  10. if ((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) && Input.GetKeyDown(KeyCode.LeftArrow))
  11. {
  12. ProcessManagement.Instance.PreProcessState();
  13. ProcessManagement.Instance.ActiveCurrentProcess();
  14. }
  15. if ((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) && Input.GetKeyDown(KeyCode.RightArrow))
  16. {
  17. ProcessManagement.Instance.NextProcessState();
  18. ProcessManagement.Instance.ActiveCurrentProcess();
  19. }
  20. }
  21. }