FM/Assets/Scripts/FUJIFILM/UI/Other/CheckIsEnterToggle.cs

33 lines
740 B
C#
Raw Normal View History

using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace HK.FUJIFILM
{
public class CheckIsEnterToggle: MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler
{
Toggle toggle;
private void Awake()
{
toggle = GetComponent<Toggle>();
}
public void OnPointerClick(PointerEventData eventData)
{
toggle.isOn = true;
Debug.Log("click");
}
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("enter");
}
public void OnPointerExit(PointerEventData eventData)
{
Debug.Log("exit");
}
}
}