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.
 
 
 
 
 
 

21 lines
475 B

using System;
using UnityEngine;
using System.Collections;
namespace UnityEngine.UI
{
public interface LoopScrollDataSource
{
void ProvideData(Transform transform, int idx);
}
public class LoopScrollDataSourceInstance: LoopScrollDataSource
{
public Action<Transform,int> scrollMoveEvent;
public void ProvideData(Transform transform, int idx)
{
scrollMoveEvent?.Invoke(transform,idx);
}
}
}