TestWorld.cs 445 B

123456789101112131415161718
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class TestWorld : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. // DontDestroyOnLoad(this.gameObject);
  10. }
  11. // Update is called once per frame
  12. void Update()
  13. {
  14. this.transform.localEulerAngles = GSXRManager.Instance.head.transform.InverseTransformVector(new Vector3(8,0,0));
  15. }
  16. }