private void OnTweenOver() { if (preCenterItem != null) { preCenterItem.SetSelectState(false);//set the item not into center } if (curCenterItem != null) { curCenterItem.SetSelectState(true);//set the item into center } }
private void OnTweenOver() { if (preCenterItem != null) { preCenterItem.SetSelectState(false); } if (curCenterItem != null) { curCenterItem.SetSelectState(true); } }
private void OnTweenOver() { if (preCenterItem != null) { preCenterItem.SetSelectState(false); } if (curCenterItem != null) { curCenterItem.SetSelectState(true); if (callBack != null) { callBack(curCenterItem.gameObject); } } }
private void OnTweenOver() { TimerManager.Destroy("rotate"); if (preCenterItem != null) { preCenterItem.SetSelectState(false); } if (curCenterItem != null) { curCenterItem.SetSelectState(true); if (callBack != null) { callBack(curCenterItem.gameObject); } } }
/// <summary> /// 渐变动画结束,设置选中状态 /// </summary> private void OnTweenOver() { if (preCenterItem != null)//上一个选中项 { preCenterItem.SetSelectState(false); } if (curCenterItem != null)//当前选中项 { curCenterItem.SetSelectState(true); } if (curCenterItem != null) { CurItemName = curCenterItem.name; } if (mDic.ContainsKey(curCenterItem.gameObject)) { if (OnSelect != null) { OnSelect(mDic[curCenterItem.gameObject]); } } }