public static TimelineManager GetInstance() { if (m_instance != null) { return(null); } return(m_instance = new TimelineManager()); }
void Update() { if (playableDirector != null && playableDirector.state == PlayState.Paused) { if (m_timelineOverHandler != null) { m_timelineOverHandler(); } TimelineManager.Free(this); m_timelineOverHandler = null; } }
void ITimeline.ForceFree() { if (enabled) { if (m_timelineOverHandler != null) { m_timelineOverHandler(); } TimelineManager.Free(this); m_timelineOverHandler = null; } }
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; }