UserCancelSafetyAreaTest.cs 788 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UserCancelSafetyAreaTest : MonoBehaviour
  5. {
  6. private float[] args = new float[32];
  7. // Update is called once per frame
  8. void Update()
  9. {
  10. if (Input.GetKeyDown(KeyCode.C))
  11. {
  12. API_Module_SafetyArea.CancelSafetyArea();
  13. }
  14. if (Input.GetKeyDown(KeyCode.B))
  15. {
  16. UnityEngine.SceneManagement.SceneManager.LoadScene("SafetyAreaChangeSceneDemo");
  17. }
  18. if (Input.GetKeyDown(KeyCode.P))
  19. {
  20. SafetyAreaCommandBuffer.Instance.AddLoading();
  21. }
  22. if (API_GSXR_Slam.GSXR_Is_SlamInitialized())
  23. {
  24. API_GSXR_Slam.plugin.GSXR_Send_Unity_Command(0, args, 32);
  25. }
  26. }
  27. }