示例#1
0
 private void Start()
 {
     if (m_leapRiggedHand == null)
     {
         m_leapRiggedHand = GetComponent <HandModelBase>();
         if (m_leapRiggedHand == null)
         {
             Debug.LogError("<b>DHUI</b> | DHUI_Hand_Leap | No Leap.Unity.HandModelBase-Component was set in Inspector or found on GameObject '" + gameObject.name + "'.");
         }
     }
 }
        private void Start()
        {
            base.Start();

            if (isPinchGrip)
            {
                HandModelBase handModelBase = (_isLeft) ? switcher.LeftAbstractHandModel : switcher.RightAbstractHandModel;

                PinchDetector pinchDetector = pinchGrabDetector;
                pinchDetector.HandModel = handModelBase;
                pinchDetector.enabled   = true;
            }
        }
 /*
  * Register a pointer with a particular transform and pointer ID.
  */
 public void RegisterHandPointer(int id, Transform pointer,
                                 UnityEngine.UI.Image progressBar,
                             #if CP_ORION
                                 // IHandModel hand
                                 // Hand hand
                                 HandModelBase hand
示例#4
0
 protected virtual void Start()
 {
     _handModel = pinchDetector.GetComponentInParent <HandModelBase>();
     _minRadius = pinchDetector.ActivateDistance / 2F;
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     _leftHand  = _leftHandObject.GetComponent <HandModelBase>();
     _rightHand = _rightHandObject.GetComponent <HandModelBase>();
 }
示例#6
0
 public HandDetails(HandModelBase handBase)
 {
     id   = getID();
     hand = handBase.GetLeapHand();
 }