27 lines
690 B
C#
27 lines
690 B
C#
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);
|
|
}
|
|
}
|