public static UniTask <int> OnValueChangedAsync(this Dropdown dropdown) { return(new AsyncUnityEventHandler <int>(dropdown.onValueChanged, dropdown.GetCancellationTokenOnDestroy(), true).OnInvokeAsync()); }
public static IUniTaskAsyncEnumerable <int> OnValueChangedAsAsyncEnumerable(this Dropdown dropdown) { return(new UnityEventHandlerAsyncEnumerable <int>(dropdown.onValueChanged, dropdown.GetCancellationTokenOnDestroy())); }
public static IAsyncValueChangedEventHandler <int> GetAsyncValueChangedEventHandler(this Dropdown dropdown) { return(new AsyncUnityEventHandler <int>(dropdown.onValueChanged, dropdown.GetCancellationTokenOnDestroy(), false)); }