Esempio n. 1
0
        public RoutineClass(RoutinesBase owner, string name, float time, Action onEnded, Action onCanceled)
        {
            this.name  = name;
            this.owner = owner;

            this.onEnded    = onEnded;
            this.onCanceled = onCanceled;

            nested = owner.StartCoroutine(Wrapper(time));
        }
Esempio n. 2
0
        public RoutineClass(
            RoutinesBase owner,
            string name,
            IEnumerator routine,
            Action onEnded,
            Action onCanceled)
        {
            this.name  = name;
            this.owner = owner;

            this.onEnded    = onEnded;
            this.onCanceled = onCanceled;

            payload = routine;
            nested  = owner.StartCoroutine(Wrapper());
        }