本文整理汇总了C#中Transform.FindInChildren方法的典型用法代码示例。如果您正苦于以下问题:C# Transform.FindInChildren方法的具体用法?C# Transform.FindInChildren怎么用?C# Transform.FindInChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transform
的用法示例。
在下文中一共展示了Transform.FindInChildren方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BirdTail
public BirdTail(Transform firstTail, ControllerInput input, BirdControl birdControl)
{
this.input = input;
this.birdControl = birdControl;
tail_1 = BirdBone.CreateBirdBone(firstTail);
tail_2 = BirdBone.CreateBirdBone(firstTail.FindInChildren("Tail_2"));
tail_3 = BirdBone.CreateBirdBone(firstTail.FindInChildren("Tail_3"));
}
示例2: BirdHead
public BirdHead(Transform neckTransfrom, ControllerInput input, BirdControl birdControl)
{
this.input = input;
this.birdControl = birdControl;
neck = BirdBone.CreateBirdBone(neckTransfrom);
head = BirdBone.CreateBirdBone(neckTransfrom.FindInChildren("Head"));
beack = BirdBone.CreateBirdBone(neckTransfrom.FindInChildren("Head_Beak_Lower"));
//headFeather = BirdBone.CreateBirdBone(neckTransfrom.FindInChildren("Head_Feather"));
}
示例3: BirdWing
public BirdWing(Transform shoulderTransform, string suffix, ControllerInput input, BirdControl birdControl)
{
this.input = input;
this.birdControl = birdControl;
if (suffix == "_L")
sign = -1f;
shoulder = BirdBone.CreateBirdBone(shoulderTransform);
wing_1 = BirdBone.CreateBirdBone(shoulderTransform.FindInChildren("Wing_1" + suffix));
//wing_1_f = BirdBone.CreateBirdBone(shoulderTransform.FindInChildren("Wing_F_1" + suffix));
wing_2 = BirdBone.CreateBirdBone(shoulderTransform.FindInChildren("Wing_2" + suffix));
wing_2_f = BirdBone.CreateBirdBone(shoulderTransform.FindInChildren("Wing_F_2" + suffix));
wing_3 = BirdBone.CreateBirdBone(shoulderTransform.FindInChildren("Wing_3" + suffix));
//wing_3_f = BirdBone.CreateBirdBone(shoulderTransform.FindInChildren("Wing_F_3" + suffix));
}
示例4: BirdLeg
public BirdLeg(Transform feetTransform, string suffix, ControllerInput input)
{
if (suffix == "_L")
{
isLeft = true;
//sign = -1f;
}
//this.input = input;
leg_feet = BirdBone.CreateBirdBone(feetTransform);
leg_heel = BirdBone.CreateBirdBone(feetTransform.FindInChildren("Leg_Heel" + suffix));
leg_lower = BirdBone.CreateBirdBone(feetTransform.FindInChildren("Leg_Lower" + suffix));
leg_upper = BirdBone.CreateBirdBone(feetTransform.FindInChildren("Leg_Upper" + suffix));
hip = BirdBone.CreateBirdBone(feetTransform.FindInChildren("Hip" + suffix));
}