UI 이벤트 추가
This commit is contained in:
12
Assets/Scripts/Utils/Extension.cs
Normal file
12
Assets/Scripts/Utils/Extension.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user