Files
UmaViewer/Assets/Scripts/LiveToolBox/SliderControl.cs
T
2023-07-12 17:22:00 +08:00

24 lines
541 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class SliderControl : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
public bool is_Touched = false;
public bool is_Outed = false;
public void OnPointerDown(PointerEventData eventData)
{
is_Touched = true;
Debug.Log("Dowm");
}
public void OnPointerUp(PointerEventData eventData)
{
is_Touched = false;
is_Outed = true;
Debug.Log("Up");
}
}