protected override void OnAwake() { base.OnAwake(); this.m_uiWrapContent = base.GetComponent <UIWrapContent>(); if (null == this.m_uiWrapContent) { Debug.LogError("null == m_uiWrapContent"); } this.m_uiWrapContent.updateHandler = new WrapContentItemUpdateEventHandler(this.OnItemUpdate); if (this.Tpl == null) { Debug.LogError("Tpl == null"); } if (!this.m_uiWrapContent.Init()) { Debug.LogError("m_uiWrapContent.Init Failed"); } }
public void RegisterItemUpdateEventHandler(WrapItemUpdateEventHandler eventHandler) { this.updateHandler = eventHandler; }