コード例 #1
0
ファイル: UIManager.cs プロジェクト: weacw/Anywhere
        private bool m_Isdownitemab;       //是否在下载AB

        /// <summary>
        /// 实时更新下载状态
        /// </summary>
        private void DownLoadListItemAB()
        {
            if (m_Isdownitemab)
            {
                if (GetObject.GetDownLoadState() == DownLoadState.DOWNLOADING)
                {
                    if (m_Downloadabitem == null)
                    {
                        return;
                    }
                    m_Downloadabitem.OnABDownloading();
                }

                if (GetObject.GetDownLoadState() == DownLoadState.DOWNLOADCOMPLETE)
                {
                    if (m_Downloadabitem == null)
                    {
                        return;
                    }
                    m_Downloadabitem.OnABDownloadComplete();
                    m_Downloadabitem = null;
                    m_Isdownitemab   = false;
                }
            }
        }