CheckHight.cs 355 B

1234567891011121314151617
  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. Invoke("yidong",1f);
  10. }
  11. void yidong()
  12. {
  13. this.transform.position = new Vector3(0,OpenXRCamera.Instance.head.position.y,0);
  14. }
  15. }