当前位置: 首页>>代码示例>>C#>>正文


C# Transform.FindInChildren方法代码示例

本文整理汇总了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"));

	}
开发者ID:PinkRodeo,项目名称:GGJ2016,代码行数:10,代码来源:BirdTail.cs

示例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"));

	}
开发者ID:PinkRodeo,项目名称:GGJ2016,代码行数:14,代码来源:BirdHead.cs

示例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));
	}
开发者ID:PinkRodeo,项目名称:GGJ2016,代码行数:21,代码来源:BirdWing.cs

示例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));


	}
开发者ID:PinkRodeo,项目名称:GGJ2016,代码行数:22,代码来源:BirdLeg.cs


注:本文中的Transform.FindInChildren方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。