1234567891011121314151617181920212223 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class ItemTest :ReusingScrollItemBase
- {
- public override void OnInit()
- {
- base.OnInit();
- AddOnClickListener("Image_item", OnClick);
- }
- public override void SetContent(int index, Dictionary<string, object> data)
- {
- GetText("Text").text = index.ToString() + RandomService.Range(0,100);
- }
- public void OnClick(InputUIOnClickEvent e)
- {
- Debug.Log("item onclick " + m_index);
- }
- }
|