protected override void Awake() { base.Awake(); Module = new RefPoolModule { DefaultCapacity = m_DefaultCapacity }; }
/// <summary> /// Initialize. /// </summary> public void Init() { m_DownloadTaskRawPool = RefPoolModule.GetOrAdd <DownloadTask>(); if (m_DownloadTaskRawPool != null) { return; } m_DownloadTaskRawPool = RefPoolModule.Add <DownloadTask>(DownloadModule.ConcurrentDownloadCountLimit); m_DownloadTaskRawPool.ApplyCapacity(); }