Пример #1
0
        public static Routine OnChangeProgress(this Routine self, Action <float> handler)
        {
            Routine.Logger.Log("OnChangeProgress is deprecated, use OnProgress", LogType.Error);

            if (self is null)
            {
                throw new NullReferenceException(nameof(self));
            }
            if (handler is null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            var progressRoutine = new ProgressRoutine(self, handler);
            var groupRoutine    = new GroupRoutine(self, progressRoutine);

            return(groupRoutine);
        }
Пример #2
0
 protected override IEnumerator RoutineUpdate()
 {
     yield return(_finalGroupRoutine = new GroupRoutine(_routines));
 }