/// <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();
            }
        }
Пример #2
0
        private void OnValueChanged(bool isOn)
        {
            if (isOn == m_IsOn)
            {
                return;
            }

            m_IsOn = isOn;
            if (isOn)
            {
                m_TweenerDirector.PlayForwards();
            }
            else
            {
                m_TweenerDirector.PlayReverse();
            }
        }