33 lines
740 B
C#
33 lines
740 B
C#
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");
|
|
}
|
|
}
|
|
} |