mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
31 lines
713 B
C#
31 lines
713 B
C#
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.EventSystems;
|
|
using System;
|
|
|
|
|
|
namespace TMPro
|
|
{
|
|
|
|
public class TMP_ScrollbarEventHandler : MonoBehaviour, IPointerClickHandler, ISelectHandler, IDeselectHandler
|
|
{
|
|
public bool isSelected;
|
|
|
|
public void OnPointerClick(PointerEventData eventData)
|
|
{
|
|
Debug.Log("Scrollbar click...");
|
|
}
|
|
|
|
public void OnSelect(BaseEventData eventData)
|
|
{
|
|
Debug.Log("Scrollbar selected");
|
|
isSelected = true;
|
|
}
|
|
|
|
public void OnDeselect(BaseEventData eventData)
|
|
{
|
|
Debug.Log("Scrollbar De-Selected");
|
|
isSelected = false;
|
|
}
|
|
}
|
|
}
|