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));
如何达到一个缓动的先后顺序呢? 可以在携程里面等时间
也可以像上面这样,缓动的时间依次增加,同一时间触发,却有次序的效果