ChangeHeight.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. using SC.XR.Unity.Module_SDKSystem;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class ChangeHeight : MonoBehaviour
  6. {
  7. // public Transform MinMap;
  8. public Transform ARSpaceforAll;
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. switch(DeviceType.type)
  13. {
  14. case "Rhinox":
  15. this.transform.localPosition = new Vector3(this.transform.localPosition.x, this.transform.localPosition.y + 1, this.transform.localPosition.z);
  16. // MinMap.transform.localPosition = new Vector3(MinMap.transform.localPosition.x, MinMap.transform.localPosition.y + 1, MinMap.transform.localPosition.z);
  17. ARSpaceforAll.transform.localPosition = new Vector3(ARSpaceforAll.transform.localPosition.x, ARSpaceforAll.transform.localPosition.y + 1, ARSpaceforAll.transform.localPosition.z);
  18. #if UNITY_EDITOR
  19. Module_SDKSystem.Instance.transform.position = new Vector3(0, 1, 0);
  20. #endif
  21. break;
  22. default:
  23. break;
  24. }
  25. }
  26. // Update is called once per frame
  27. void Update()
  28. {
  29. }
  30. }