27 lines
690 B
C#
Raw Permalink Normal View History

2025-06-07 17:43:34 +08:00
using System;
using UnityEngine;
using UnityEngine.EventSystems;
public class UIMonoBase : MonoBase
{
public void EventClick(GameObject ga, Action<PointerEventData> func, int soundId = 0, int effectId = 2004003, bool isAnim = true, float clickCD = 0.5f)
{
UITool.EventClick(ga, func, soundId, effectId, isAnim, clickCD);
}
public void RemoveClick(GameObject ga)
{
UITool.RemoveClick(ga);
}
public void EventDown(GameObject ga, Action<PointerEventData> func)
{
UITool.EventDown(ga, func);
}
public void SetBtnInteractable(GameObject go, bool interactable)
{
UITool.SetBtnInteractable(go, interactable);
}
}