本文整理汇总了C#中HandModel.SetLeapHand方法的典型用法代码示例。如果您正苦于以下问题:C# HandModel.SetLeapHand方法的具体用法?C# HandModel.SetLeapHand怎么用?C# HandModel.SetLeapHand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HandModel
的用法示例。
在下文中一共展示了HandModel.SetLeapHand方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DestroyHand
private void DestroyHand(HandModel hand_model) {
if (destroyHands)
Destroy(hand_model.gameObject);
else
hand_model.SetLeapHand(null);
}
示例2: DestroyHand
/**
* Destroys a HandModel instance if HandController.destroyHands is true (the default).
* If you set destroyHands to false, you must destroy the hand instances elsewhere in your code.
*/
protected void DestroyHand(HandModel hand_model)
{
handEvent handHandler = onDestroyHand;
if (handHandler != null) {
handHandler(hand_model);
}
if (destroyHands)
Destroy(hand_model.gameObject);
else
hand_model.SetLeapHand(null);
}
示例3: DestroyHand
/**
* Destroys a HandModel instance if HandController.destroyHands is true (the default).
* If you set destroyHands to false, you must destroy the hand instances elsewhere in your code.
* EDIT BV : put back the hands in the initial position
*/
protected void DestroyHand(HandModel hand_model)
{
if (hand_model.GetLeapHand().IsLeft) {
lefthand = null;
//Debug.Log("DestroyHand: minus left hand");
} else {
righthand = null;
//Debug.Log("DestroyHand: minus right hand");
}
if (destroyHands)
Destroy(hand_model.gameObject);
else
hand_model.SetLeapHand(null);
//Debug.Log("DestroyHand " + hand_model);
}