protected virtual void CheckControllersReady() { RegisterLeftControllerReady(); RegisterRightControllerReady(); VRTK_ControllerReference leftRef = VRTK_DeviceFinder.GetControllerReferenceLeftHand(); VRTK_ControllerReference rightRef = VRTK_DeviceFinder.GetControllerReferenceRightHand(); if (VRTK_ControllerReference.IsValid(leftRef)) { ControllerReady(leftRef); } if (VRTK_ControllerReference.IsValid(rightRef)) { ControllerReady(rightRef); } }
protected virtual void SetControllerReferences() { leftControllerReference = VRTK_DeviceFinder.GetControllerReferenceLeftHand(); rightControllerReference = VRTK_DeviceFinder.GetControllerReferenceRightHand(); }
protected virtual void ControllerModelAvailable(object sender, ControllerInteractionEventArgs e) { leftControllerReference = VRTK_DeviceFinder.GetControllerReferenceLeftHand(); rightControllerReference = VRTK_DeviceFinder.GetControllerReferenceRightHand(); }