IEnumerator PlayRoutine(string animation)
        {
            animator.Play(animation);
            yield return(null);

            sequence.SetDurationAndBegin(stateInfo.length);
        }
Ejemplo n.º 2
0
        IEnumerator Process()
        {
            if (progress)
            {
                progress.SetDurationAndBegin(duration);
            }

            timer.SetDurationAndBegin(duration);

            while (timer.inProgress)
            {
                yield return(null);

                Percent.Invoke(outputPercent);
            }
        }