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);
            }
        }
Exemplo n.º 2
0
 protected virtual void SetControllerReferences()
 {
     leftControllerReference  = VRTK_DeviceFinder.GetControllerReferenceLeftHand();
     rightControllerReference = VRTK_DeviceFinder.GetControllerReferenceRightHand();
 }
Exemplo n.º 3
0
 protected virtual void ControllerModelAvailable(object sender, ControllerInteractionEventArgs e)
 {
     leftControllerReference  = VRTK_DeviceFinder.GetControllerReferenceLeftHand();
     rightControllerReference = VRTK_DeviceFinder.GetControllerReferenceRightHand();
 }