public static IObservable <Unit> OnAnyKeyDownAsObservable(this Component component) => KeyInputUtil.CreateSubject(KeyInputUtil.InputType.anyKeyDown) .TakeUntilDestroy(component);
public static IObservable <Unit> OnKeyDownAsObservable(this Component component, KeyCode keyCode) => KeyInputUtil.CreateSubject(KeyInputUtil.InputType.GetKeyDown, keyCode) .TakeUntilDestroy(component);
public static IObservable <Unit> GetKey(KeyCode keyCode) => KeyInputUtil.CreateSubject(KeyInputUtil.InputType.GetKey, keyCode);