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


C# Sequence.Insert方法代码示例

本文整理汇总了C#中Sequence.Insert方法的典型用法代码示例。如果您正苦于以下问题:C# Sequence.Insert方法的具体用法?C# Sequence.Insert怎么用?C# Sequence.Insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sequence的用法示例。


在下文中一共展示了Sequence.Insert方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SeqInsert

	public void SeqInsert (ref Sequence seq, RadialWipeData wipe, float nextRotation) {
		seq.Insert(wipe.StartTime, DOTween.To(() => wipe.Img.fillAmount,
			x => wipe.Img.fillAmount = x, wipe.PercentageFinal*0.01f, SliceWipeDuration).
			SetEase(wipe.EaseType)
			);
		seq.Insert(wipe.StartTime,
			wipe.Img.transform.DORotate (wipe.EndRotation, SliceWipeDuration, RotateMode.FastBeyond360)
			.SetEase (wipe.EaseType));

		// Rotate Dotted-Line to the avg angle between current and previous slices
		var dottedLineRot = Mathf.Lerp(wipe.EndRotation.z, nextRotation, 0.5f);
		//var dataTextTransf = wipe.DataText.Root.transform;
		seq.Insert (wipe.StartTime,
			wipe.DottedLine.transform.DORotate (new Vector3 (0, 0, dottedLineRot), 
			SliceWipeDuration, RotateMode.FastBeyond360)
			.SetEase(wipe.EaseType));

		int count = 0;
		seq.Insert(wipe.StartTime,
			DOTween.To(() => count, x => count = x, wipe.PercentageFinal,
						SliceWipeDuration * 1.5f)
						.SetEase(wipe.EaseType)
						.OnUpdate(()=>wipe.DataText.Value.text = count+"%")
					);
	}
开发者ID:MaDDoXbr,项目名称:https---github.com-magneticservices-Palomar,代码行数:25,代码来源:DonutGraph.cs

示例2: animScaleSeqInsert

 public static void animScaleSeqInsert(ref Sequence seq, float insTime, GameObject obj, float duration, Ease easeType, Vector3 animTo, float delay)
 {
     seq.Insert(insTime,
                DOTween.To(()=> obj.transform.localScale, x=> obj.transform.localScale = x, animTo, duration).SetEase(easeType).SetUpdate(false).SetDelay(delay)
                );
 }
开发者ID:QSilver,项目名称:UnityBlob,代码行数:6,代码来源:WMG_Anim.cs

示例3: SeqInsert

	public void SeqInsert (ref Sequence seq, float startTime, Image img, float dur, Ease ease) {
		seq.Insert (startTime, DOTween.To (()=>img.fillAmount, 
		                        x => img.fillAmount = x, 1, dur).
		            			SetEase(ease)/*.
		          				SetDelay(delay)*/);		
	}
开发者ID:MaDDoXbr,项目名称:https---github.com-magneticservices-Palomar,代码行数:6,代码来源:LineGrapher.cs

示例4: SeqInsert

	public void SeqInsert (ref Sequence seq, DottedLineWipeData wipe) {
		seq.Insert (wipe.StartTime,
			wipe.CircleTransform.DOScale (wipe.CircleEndScale, wipe.Duration)
			.SetEase (wipe.EaseType));
		var textStartTime = Mathf.Lerp(wipe.StartTime, wipe.StartTime + wipe.Duration, TextStartPercentage);
		seq.Insert (textStartTime,
			wipe.Data.Root.DOScale (1f, wipe.Duration * TextTweenPercentage)
			.SetEase (wipe.EaseType));
		seq.Insert(wipe.StartTime, DOTween.To(() => wipe.DottedLine.WipeAmount,
			x => wipe.DottedLine.WipeAmount = x, 1f, wipe.Duration).
			SetEase(wipe.EaseType)
			);
	}
开发者ID:MaDDoXbr,项目名称:https---github.com-magneticservices-Palomar,代码行数:13,代码来源:WorldGraph.cs

示例5: SeqInsert

	public void SeqInsert (ref Sequence seq, BGWipeData wipeData, int i)
	{
		seq.Insert (
			wipeData.StartTime + i*wipeData.StepDelay,
			DOTween.To (() => wipeData.MultiLines.Points[i],
						x => wipeData.MultiLines.Points[i] = x,
						wipeData.MultiLines.FinalPoints[i], wipeData.Duration).
						SetEase (wipeData.EaseType)
						.OnUpdate(UpdateMultiLine)
						);
	}
开发者ID:MaDDoXbr,项目名称:https---github.com-magneticservices-Palomar,代码行数:11,代码来源:FilledLineGraph.cs


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