1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class InitRtc : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
- Invoke("SetParent",1f);
- }
- public void SetParent()
- {
- this.transform.parent = OpenXRCamera.Instance.head;
- this.transform.localPosition = Vector3.zero;
- this.transform.localEulerAngles = Vector3.zero;
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
|