您的位置:首页 > 产品设计 > UI/UE

NGUITween使用技巧

2016-04-21 09:24 399 查看
mTime = 0;
int maxNum = Con_MoveLayer.transform.childCount;
for (int i = maxNum-1; i >= 0; i--)
{
Transform child = Con_MoveLayer.transform.GetChild(i);
if (child.gameObject.activeSelf == false)
child.gameObject.SetActive(true);

mTime += mTweenTime;
TweenPosition tp = TweenPosition.Begin(child.gameObject, mTime, mVec3 * (i+1));
tp.method = UITweener.Method.BounceOut;
tp.PlayForward();
}
MonoBehaviour mono = Control("root").GetComponent<MonoBehaviour>();
if (mono == null)
{
mono = Control("root").AddComponent<MonoBehaviour>();
}
mono.StopAllCoroutines();
mono.StartCoroutine(CallYield(call, mTime));

如何达到一个缓动的先后顺序呢? 可以在携程里面等时间

也可以像上面这样,缓动的时间依次增加,同一时间触发,却有次序的效果
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: