Super Knight : Enter the Dungeon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
698 B

using OneP.InfinityScrollView;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ListViewerItem : InfinityBaseItem
{
public delegate string OnDataGet(int idx);
public OnDataGet OnGeted;
public override void Reload(InfinityScrollView infinity, int _index)
{
base.Reload(infinity, _index);
if (OnGeted != null)
Refresh(OnGeted(_index));
}
public Text txt;
string str;
public void Refresh(string str)
{
this.str = str;
txt.text = str;
}
public System.Action<string> OnSelect;
public void OnClick()
{
OnSelect(str);
}
}