示例#1
0
 public static TimelineManager GetInstance()
 {
     if (m_instance != null)
     {
         return(null);
     }
     return(m_instance = new TimelineManager());
 }
示例#2
0
 void Update()
 {
     if (playableDirector != null && playableDirector.state == PlayState.Paused)
     {
         if (m_timelineOverHandler != null)
         {
             m_timelineOverHandler();
         }
         TimelineManager.Free(this);
         m_timelineOverHandler = null;
     }
 }
示例#3
0
 void ITimeline.ForceFree()
 {
     if (enabled)
     {
         if (m_timelineOverHandler != null)
         {
             m_timelineOverHandler();
         }
         TimelineManager.Free(this);
         m_timelineOverHandler = null;
     }
 }
示例#4
0
        public void Dispose()
        {
#if LOG && UNITY_EDITOR
            PrintModel();
            PrintDontPreload();
            PrintDontConfig();
#endif
            foreach (var item in m_dic)
            {
                item.Value.Clear();
            }
            if (parent != null)
            {
                UnityEngine.Object.Destroy(parent.gameObject);
            }
            parent     = null;
            m_instance = null;
        }