/// <inheritdoc /> public async void OnEvent(DemoResetArgs args) { if (usePyramid) { await trackerGroupTweener.PlayReverseAsync(); pyramidDirector?.PlayReverse(); } else if (useTimeline) { await trackerGroupTweener.PlayReverseAsync(); timelineDirector?.PlayReverse(); } }
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(); }