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 data) { GetText("Text").text = index.ToString() + RandomService.Range(0,100); } public void OnClick(InputUIOnClickEvent e) { Debug.Log("item onclick " + m_index); } }