Example #1
0
        public static DisposableListener AddDisposableListenerAndInvoke(
            this UnityEvent unityEvent,
            UnityAction action
            )
        {
            var ev = unityEvent.AddDisposableListener(action);

            action();
            return(ev);
        }