OpenXRCamera.cs 356 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class OpenXRCamera : MonoBehaviour
  5. {
  6. public static OpenXRCamera Instance;
  7. public Transform head;
  8. void Awake()
  9. {
  10. if (Instance)
  11. {
  12. DestroyImmediate(gameObject);
  13. return;
  14. }
  15. Instance = this;
  16. }
  17. }