/// <inheritdoc /> public async void OnEvent(WorkflowLoadArgs args) { UpdateTrackerUsage(usePyramid, useTimeline); if (usePyramid) { await trackerGroupTweener.PlayForwardsAsync(); pyramidDirector?.PlayForwards(); } else if (useTimeline) { await trackerGroupTweener.PlayForwardsAsync(); timelineDirector?.PlayForwards(); } }
public async Task Play() { m_NumberScroller.targetValue = m_Target; m_AlphaTweener.PlayForwardsAsync(); while (!m_NumberScroller.isTargetReached && m_AlphaTweener.isPlaying) { await new WaitForEndOfFrame(); } m_Slider.value = 0; m_AlphaTweener.PlayReverseAsync(); }