async void Start() { _LeftHandOVRSkelton = _LeftOVRHand.GetComponent <OVRSkeleton>(); _RightHandOVRSkelton = _RightOVRHand.GetComponent <OVRSkeleton>(); #if UNITY_EDITOR _LeftHandOVRSkelton.ShouldUpdateBonePoses = true; _RightHandOVRSkelton.ShouldUpdateBonePoses = true; #endif await UniTask.WaitUntil(() => (_LeftHandOVRSkelton.IsInitialized)); await UniTask.WaitUntil(() => (_RightHandOVRSkelton.IsInitialized)); Initialize(); SetTargetPoseHandler(); if (_WristController == null) { _WristController = GetComponent <OculusWristController>(); } _WristController._LeftOVRHand = _LeftOVRHand; _WristController._RightOVRHand = _RightOVRHand; IsAvailable = true; }
void Start() { Initialize(); SetTargetPoseHandler(); if (_WristController == null) { _WristController = GetComponent <OculusWristController>(); } _WristController._LeftOVRHand = _LeftOVRHand; _WristController._LeftOVRHand = _RightOVRHand; }