本文整理汇总了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+"%")
);
}
示例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)
);
}
示例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)*/);
}
示例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)
);
}
示例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)
);
}