Files
ZHGD_Web/Assets/Script/Tool/MouseScpoeTool.cs
2025-07-13 23:16:20 +08:00

35 lines
790 B
C#

using Hanatric.Unity.MonoComponent;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class MouseScpoeTool : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnPointerExit(PointerEventData eventData)
{
CommonCamera.IsMouseScpoe = false;
// throw new System.NotImplementedException();
}
public void OnPointerEnter(PointerEventData eventData)
{
CommonCamera.IsMouseScpoe = true;
// throw new System.NotImplementedException();
}
}