private bool TryMoveNext()
        {
            targetTextElement.text = string.Empty;
            if (timelineEnumerator.MoveNext())
            {
                currentElement = timelineEnumerator.Current;
                if (currentElement == null)
                {
                    currentTimeline = null;
                    return(false);
                }
                else
                {
                    doneWithCurrentElement = false;
                    fadeInDone             = false;
                    fadeOutDone            = false;
                    fadeDirection          = FadeDirection.None;
                    elementDisplayedAt     = float.NaN;

                    return(true);
                }
            }
            else
            {
                return(false);
            }
        }
        public void PlayTimeline(HudTimeline timeline)
        {
            if (!timeline || timeline.timelineElements?.Count == 0)
            {
                return;
            }

            currentTimeline    = timeline;
            timelineEnumerator = currentTimeline.timelineElements.GetEnumerator();
            timelineStarted?.Invoke();
        }