private void Reset() { m_DownloadCounterNodes.Clear(); m_CurrentSpeed = 0f; m_Accumulator = 0f; m_TimeLeft = 0f; }
/// <summary> /// 关闭并清理任务管理器。 /// </summary> public override void Dispose() { base.Dispose(); CancelAllTasks(null); foreach (TaskBase task in m_Tasks) { ReferencePool.Release(task); } m_Tasks.Clear(); }
public override void Dispose() { if (m_LoadSceneInfos != null) { m_LoadSceneInfos.Clear(); m_LoadSceneInfos = null; } if (m_UnloadSceneInfos != null) { m_UnloadSceneInfos.Clear(); m_UnloadSceneInfos = null; } if (m_LoadAssetInfos != null) { m_LoadAssetInfos.Clear(); m_LoadAssetInfos = null; } }