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.
|
|
|
|
using OneP.InfinityScrollView;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class SlotSpinItem : InfinityBaseItem
|
|
|
|
|
{
|
|
|
|
|
public delegate Sprite 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 Image img;
|
|
|
|
|
public void Refresh(Sprite sprite)
|
|
|
|
|
{
|
|
|
|
|
img.sprite = sprite;
|
|
|
|
|
}
|
|
|
|
|
}
|