public HandProxy(HandPool parent, IHandModel handModel, Leap.Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handFinishBehavior = handModel.GetComponent<HandTransitionBehavior>(); if (handFinishBehavior) { handFinishBehavior.Reset(); } }
public HandProxy(HandPool parent, IHandModel handModel, Leap.Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handFinishBehavior = handModel.GetComponent <HandTransitionBehavior>(); if (handFinishBehavior) { handFinishBehavior.Reset(); } }