本文整理汇总了C#中Tween.Goto方法的典型用法代码示例。如果您正苦于以下问题:C# Tween.Goto方法的具体用法?C# Tween.Goto怎么用?C# Tween.Goto使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tween
的用法示例。
在下文中一共展示了Tween.Goto方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: blinkCurrentPointAnimation
void blinkCurrentPointAnimation(bool fromOnCompleteAnimateAdd = false) {
graph.Refresh(); // Ensures gamobject list of series points is up to date based on pointValues
WMG_Node lastPoint = series1.getLastPoint().GetComponent<WMG_Node>();
string blinkingPointAnimId = series1.GetHashCode() + "blinkingPointAnim";
DOTween.Kill(blinkingPointAnimId);
blinkingTween = lastPoint.objectToScale.transform.DOScale(new Vector3(blinkScale,blinkScale,blinkScale), blinkAnimDuration).SetEase(plotEaseType)
.SetUpdate(false).SetId(blinkingPointAnimId).SetLoops(-1, LoopType.Yoyo);
if (series1.pointValues.Count > 1) { // ensure previous point scale reset
WMG_Node blinkingNode = series1.getPoints()[series1.getPoints().Count-2].GetComponent<WMG_Node>();
if (fromOnCompleteAnimateAdd) { // removing a pointValues index deletes the gameobject at the end, so need to set the timeline from the previous tween
blinkingTween.Goto(blinkAnimDuration * blinkingNode.objectToScale.transform.localScale.x/blinkScale, true);
}
blinkingNode.objectToScale.transform.localScale = Vector3.one;
}
}