CheckHight.cs 418 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CheckHight : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. if(DeviceType.type=="Rhinox")
  10. {
  11. Invoke("yidong",1f);
  12. }
  13. }
  14. void yidong()
  15. {
  16. this.transform.position = new Vector3(0,OpenXRCamera.Instance.head.position.y,0);
  17. }
  18. }