public static IObservable <Unit> OnButtonUpAsObservable(this Component component, string buttonName) => ButtonInputUtil.CreateSubject(ButtonInputUtil.InputType.GetButtonUp, buttonName) .TakeUntilDestroy(component);
public static IObservable <Unit> GetButtonUp(string buttonName) => ButtonInputUtil.CreateSubject(ButtonInputUtil.InputType.GetButtonUp, buttonName);