コード例 #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 + "'.");
         }
     }
 }
コード例 #2
0
        private void Start()
        {
            base.Start();

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

                PinchDetector pinchDetector = pinchGrabDetector;
                pinchDetector.HandModel = handModelBase;
                pinchDetector.enabled   = true;
            }
        }
コード例 #3
0
 /*
  * 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
ファイル: PaintCursor.cs プロジェクト: ccdump/Paint-1
 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();
 }