Ejemplo n.º 1
0
 void Start()
 {
     handType = (HandTypeBase)Instantiate(handType, transform.position, Quaternion.identity);
     handType.SetOwner(this);
     handType.name    = isRightHand ? "rightHand" : "leftHand";
     renderer.enabled = false;         // Disable visual indicator for Unityhand
     if (initialLeapObject)
     {
         initialLeapObject.gameObject.SetActive(true);
         handType.ChangeState(initialLeapObject.Activate(handType));
     }
     originalPos     = transform.localPosition;
     detectedFingers = new FingerDetection(this);
     InstantiateFingers();
     Contro = GameObject.Find("Controller");
 }
Ejemplo n.º 2
0
    void Start()
    {
        handType = (HandTypeBase)Instantiate(handType, transform.position, Quaternion.identity);
        handType.SetOwner(this);
        handType.name = isRightHand ? "rightHand" : "leftHand";

        renderer.enabled = false; // Disable visual indicator for Unityhand

        if (initialLeapObject)
        {
            initialLeapObject.gameObject.SetActive(true);
            handType.ChangeState(initialLeapObject.Activate(handType));
        }

        originalPos = transform.localPosition;

        detectedFingers = new FingerDetection(this);
        InstantiateFingers();
    }