feat: send data to event

develop
paring 2022-11-03 20:56:56 +09:00
parent e23c07bf80
commit 3cd5067f49
Signed by: pikokr
GPG Key ID: DB839724AD14EC9F
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.Events;
namespace SkyHook
{
@ -12,6 +13,8 @@ namespace SkyHook
private bool _started;
public static UnityEvent<SkyHookEvent> KeyUpdated = new();
public static SkyHookManager Instance
{
get
@ -30,7 +33,7 @@ namespace SkyHook
private void HookCallback(SkyHookEvent ev)
{
Debug.Log($"{ev.Type} {ev.Key} {ev.Time}");
KeyUpdated.Invoke(ev);
}
private void StartHook()