public static void Register <T>(this IEventHubForScene sub, Action <T> eventHandler) { sub.Register <T>(topic => { eventHandler(topic); return(Task.CompletedTask); }); }
public void RegisterEventHub(IEventHubForScene hub) { hub.Register <LevelMap>(UpdateData); }
public void RegisterEventHub(IEventHubForScene hub) { Debug.Log(transform.position); _eventHub = hub; _eventHub.Register <GameInput>(OnGamInput); }