18 lines
369 B
C#
18 lines
369 B
C#
|
using UnityEngine;
|
|||
|
using UnityEngine.EventSystems;
|
|||
|
using UnityEngine.UI.Extensions;
|
|||
|
|
|||
|
public class PaginationScript : MonoBehaviour, IPointerClickHandler
|
|||
|
{
|
|||
|
public HorizontalScrollSnap hss;
|
|||
|
public int Page;
|
|||
|
|
|||
|
public void OnPointerClick(PointerEventData eventData)
|
|||
|
{
|
|||
|
if (hss != null)
|
|||
|
{
|
|||
|
hss.GoToScreen(Page);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|