feat: send data to event
parent
e23c07bf80
commit
3cd5067f49
|
@ -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()
|
||||
|
|
Reference in New Issue