/// <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; } } }
/// <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); }
/// <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; } } }