コード例 #1
0
 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");
     }
 }
コード例 #2
0
 public void RegisterItemUpdateEventHandler(WrapItemUpdateEventHandler eventHandler)
 {
     this.updateHandler = eventHandler;
 }