Example #1
0
    //Upon the leap's typical InitHand method running, this little function checks if it's the right hand and if so activates the SculptingHand script

    public void AssignHand(Hand hand)
    {
        if (hand.IsRight)
        {
            SculptingHand handInstance = GetComponent <SculptingHand>();
            handInstance.enabled = true;
            LeapInputManager.instance.InitializePinchingHand(handInstance);
        }
    }
Example #2
0
 public void InitializePinchingHand(SculptingHand hand)
 {
     SculptVerts.instance.hand = hand;
 }