Beispiel #1
0
 public static SourceAwaiter GetAwaiter(this UnityEvent evt)
 {
     return(new SourceAwaiter(UnityEventSource.Request(evt)));
 }
Beispiel #2
0
        public static SourceAwaiter <T> GetAwaiter <T>(this UnityEvent <T> evt)
        {
            var source = UnityEventSource <T> .Request(evt);

            return(new SourceAwaiter <T>(source));
        }