private void Awake() { UIScrollBar scrollbar = m_scrollbar; scrollbar.onChange = (UIScrollBar.OnScrollBarChange)Delegate.Combine(scrollbar.onChange, new UIScrollBar.OnScrollBarChange(OnScrollbarChanged)); m_helper.Init(this); }
public static void InitScrollListeners(IScrollingListener p_listener, GameObject p_go) { ScrollingHelper[] componentsInChildren = p_go.GetComponentsInChildren <ScrollingHelper>(); for (Int32 i = 0; i < componentsInChildren.Length; i++) { componentsInChildren[i].Init(p_listener); } ScrollingHelper component = p_go.GetComponent <ScrollingHelper>(); if (component != null) { component.Init(p_listener); } }