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
protected virtual void Start() { _handModel = pinchDetector.GetComponentInParent <HandModelBase>(); _minRadius = pinchDetector.ActivateDistance / 2F; }
// Use this for initialization void Start() { _leftHand = _leftHandObject.GetComponent <HandModelBase>(); _rightHand = _rightHandObject.GetComponent <HandModelBase>(); }
public HandDetails(HandModelBase handBase) { id = getID(); hand = handBase.GetLeapHand(); }