Exemplo n.º 1
0
        public void SetCurrentSequence(TimelineAsset timelineAsset, PlayableDirector director, TimelineClip hostClip)
        {
            if (OnBeforeSequenceChange != null)
            {
                OnBeforeSequenceChange.Invoke();
            }

            OnCurrentDirectorWillChange();

            if (hostClip == null || timelineAsset == null)
            {
                m_PropertyCollector.Clear();
                m_SequenceHierarchy.Clear();
            }

            if (timelineAsset != null)
            {
                m_SequenceHierarchy.Add(timelineAsset, director, hostClip);
            }

            if (OnAfterSequenceChange != null)
            {
                OnAfterSequenceChange.Invoke();
            }
        }
Exemplo n.º 2
0
        public void OnDestroy()
        {
            if (!ignorePreview)
            {
                Stop();
            }

            if (m_OnStartFrameUpdates != null)
            {
                m_OnStartFrameUpdates.Clear();
            }

            if (m_OnEndFrameUpdates != null)
            {
                m_OnEndFrameUpdates.Clear();
            }

            m_SequenceHierarchy.Clear();
            windowOnGuiStarted = null;
        }
Exemplo n.º 3
0
        public void OnDestroy()
        {
            if (!Application.isPlaying)
            {
                Stop();
            }

            if (m_OnStartFrameUpdates != null)
            {
                m_OnStartFrameUpdates.Clear();
            }

            if (m_OnEndFrameUpdates != null)
            {
                m_OnEndFrameUpdates.Clear();
            }

            m_SequenceHierarchy.Clear();
            windowOnGuiStarted  = null;
            windowOnGuiFinished = null;
        }