Aetheria/Assets/Scripts/NIH/unity-ui-extensions/Examples/HSS-VSS-ScrollSnap/PaginationScript.cs
hyperion51 c58ba0b1da Copy Aetheria Code
Added a bunch of code from the old Aetheria project
2020-02-27 18:51:07 +00:00

18 lines
No EOL
413 B
C#

using UnityEngine.EventSystems;
namespace UnityEngine.UI.Extensions.Examples
{
public class PaginationScript : MonoBehaviour, IPointerClickHandler
{
public HorizontalScrollSnap hss;
public int Page;
public void OnPointerClick(PointerEventData eventData)
{
if (hss != null)
{
hss.GoToScreen(Page);
}
}
}
}