14 lines
349 B
C#
14 lines
349 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public static class Extension
|
|
{
|
|
public static void AddUIEvent(this GameObject go, Action<PointerEventData> action, Define.UIEvent type = Define.UIEvent.Click)
|
|
{
|
|
UI_Base.AddUIEvent(go, action, type);
|
|
}
|
|
}
|