123456789101112131415161718192021222324252627282930313233 |
- using SC.XR.Unity.Module_SDKSystem;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ChangeHeight : MonoBehaviour
- {
-
- public Transform ARSpaceforAll;
-
- 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);
-
- 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;
- }
- }
-
- void Update()
- {
-
- }
- }
|