Пример #1
0
 /// <summary>
 /// index를 설정한다.
 /// </summary>
 /// <param name="index"></param>
 public void SetIndex(int index)
 {
     if (Index != index)
     {
         Index = index;
         if (Target != null)
         {
             cUIScrollListBase scr = Target.GetComponent <cUIScrollListBase>();
             scr.ListItem = this;
         }
     }
 }
Пример #2
0
 /// <summary>
 /// index를 설정한다.
 /// </summary>
 /// <param name="index"></param>
 public bool SetIndex(int index)
 {
     if (Index != index)
     {
         Index = index;
         if (Target != null)
         {
             cUIScrollListBase scr = Target.GetComponent <cUIScrollListBase>();
             scr.ListItem = this;
         }
         return(true);
     }
     return(false);
 }
Пример #3
0
    /// <summary>
    /// index를 설정한다.
    /// </summary>
    /// <param name="index"></param>
    public void SetIndex(int index)
    {
        if (Index != index)
        {
            Index = index;
            if (Target != null)
            {
                //Debug.Log("target : " + Target );

                if (Target.GetComponent <cUIScrollListBase>() == null)
                {
                    Target.AddComponent <cUIScrollListBase>();
                }

                cUIScrollListBase scr = Target.GetComponent <cUIScrollListBase>();
                scr.ListItem = this;
            }
        }
    }