TestDic.cs 472 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class TestDic : MonoBehaviour
  5. {
  6. TextMesh text;
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. text = this.GetComponent<TextMesh>();
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. text.text = GSXRManager.Instance.head.position.ToString()+"\n"+ GSXRManager.Instance.leftCamera.transform.localPosition.x;
  16. }
  17. }