1234567891011121314151617181920212223242526272829303132 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class UserCancelSafetyAreaTest : MonoBehaviour
- {
- private float[] args = new float[32];
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.C))
- {
- API_Module_SafetyArea.CancelSafetyArea();
- }
- if (Input.GetKeyDown(KeyCode.B))
- {
- UnityEngine.SceneManagement.SceneManager.LoadScene("SafetyAreaChangeSceneDemo");
- }
- if (Input.GetKeyDown(KeyCode.P))
- {
- SafetyAreaCommandBuffer.Instance.AddLoading();
- }
- if (API_GSXR_Slam.GSXR_Is_SlamInitialized())
- {
- API_GSXR_Slam.plugin.GSXR_Send_Unity_Command(0, args, 32);
- }
- }
- }
|