123456789101112131415161718192021222324252627282930313233 |
- using SC.XR.Unity.Module_SDKSystem;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ChangeHeight : MonoBehaviour
- {
- // public Transform MinMap;
- public Transform ARSpaceforAll;
- // Start is called before the first frame update
- void Start()
- {
- switch(DeviceType.type)
- {
- case "Rhinox":
- this.transform.localPosition = new Vector3(this.transform.localPosition.x, this.transform.localPosition.y + 1, this.transform.localPosition.z);
- // MinMap.transform.localPosition = new Vector3(MinMap.transform.localPosition.x, MinMap.transform.localPosition.y + 1, MinMap.transform.localPosition.z);
- ARSpaceforAll.transform.localPosition = new Vector3(ARSpaceforAll.transform.localPosition.x, ARSpaceforAll.transform.localPosition.y + 1, ARSpaceforAll.transform.localPosition.z);
- #if UNITY_EDITOR
- Module_SDKSystem.Instance.transform.position = new Vector3(0, 1, 0);
- #endif
- break;
- default:
- break;
- }
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
|