SetSelectState() 공개 메소드

public SetSelectState ( bool isCenter ) : void
isCenter bool
리턴 void
예제 #1
0
 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
     }
 }
예제 #2
0
 private void OnTweenOver()
 {
     if (preCenterItem != null)
     {
         preCenterItem.SetSelectState(false);
     }
     if (curCenterItem != null)
     {
         curCenterItem.SetSelectState(true);
     }
 }
예제 #3
0
 private void OnTweenOver()
 {
     if (preCenterItem != null)
     {
         preCenterItem.SetSelectState(false);
     }
     if (curCenterItem != null)
     {
         curCenterItem.SetSelectState(true);
         if (callBack != null)
         {
             callBack(curCenterItem.gameObject);
         }
     }
 }
예제 #4
0
 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]);
            }
        }
    }