Example #1
0
 private void Reset()
 {
     m_DownloadCounterNodes.Clear();
     m_CurrentSpeed = 0f;
     m_Accumulator  = 0f;
     m_TimeLeft     = 0f;
 }
Example #2
0
        /// <summary>
        /// 关闭并清理任务管理器。
        /// </summary>
        internal override void Shutdown()
        {
            CancelAllTasks(null);

            foreach (TaskBase task in m_Tasks)
            {
                ReferencePool.Release(task);
            }

            m_Tasks.Clear();
        }