public override void Play(Action onComplete = null) { base.Play(onComplete); animation = animationCreationFunction(); animation.Play(NotifyAnimationComplete); }
private void HandleAnimationComplete(UIAnimation animation) { AnimationsCompleted++; if (AnimationsCompleted == Animations.Count) { NotifyAnimationComplete(); } }