private void OnSliceOut(CItemRender item) { UILoopManager.ClearTimeout(doneKey); Hashtable hash = iTween.Hash("x", width, "time", fadeTime, "islocal", true); iTween.MoveTo(item.go, hash); deplayKeyList.Add(UILoopManager.SetTimeout <CItemRender, TweenAlpha>(OnMoveUp, fadeTime, item, null)); }
private void OnFadeOut(CItemRender item) { UILoopManager.ClearTimeout(doneKey); var tween = TweenAlpha.Begin(item.go, fadeTime, 0f); listAlpha.Add(tween); deplayKeyList.Add(UILoopManager.SetTimeout <CItemRender, TweenAlpha>(OnMoveUp, fadeTime, item, tween)); }
private void StopMove() { delList.Clear(); if (_allItem != null) { for (int n = 0, len = _allItem.Count; n < len; n++) { CItemRender tempItem = _allItem[n]; //tempItem.SetParent(firstItem.tran); iTween.Stop(tempItem.go); } } if (_itemPool != null) { for (int n = 0, len = _itemPool.Count; n < len; n++) { CItemRender tempItem = _itemPool[n]; //tempItem.SetParent(firstItem.tran); iTween.Stop(tempItem.go); } } for (int i = 0, len = listAlpha.Count; i < len; i++) { if (listAlpha[i]) { UnityEngine.Object.DestroyImmediate(listAlpha[i]); } } for (int r = 0, len = listAlpha.Count; r < len; r++) { UILoopManager.ClearTimeout(deplayKeyList[r]); } listAlpha.Clear(); deplayKeyList.Clear(); UILoopManager.ClearTimeout(doneKey); }