Exemplo n.º 1
0
        public AnimationsCollector Merge(AnimationsCollector another)
        {
            var collector = new AnimationsCollector();

            collector._animations.AddRange(_animations);
            collector._animations.AddRange(another._animations);
            return(collector);
        }
        public IEnumerator Animate(AnimationsCollector collector)
        {
            _counter = collector.Animations.Count;
            foreach (var coroutine in collector.Animations)
            {
                StartCoroutine(ExecuteAnimation(coroutine));
            }

            yield return(new WaitUntil(() => _counter == 0));
        }