Example #1
0
        private void OnPackageUpdateFinish()
        {
            if (m_UpdateFailedList.Count > 0)
            {
                ClearLoader();
                Log.w("## Try Start Update Failed Res.");
                InnerStartUpdate(m_UpdateFailedList);
                m_UpdateFailedList.Clear();
                return;
            }

            m_UpdateResult = false;

            if (m_Loader != null)
            {
                m_UpdateResult = m_Loader.IsAllResLoadSuccess();

                if (m_UpdateResult)
                {
                    m_NeedUpdateFileList.Clear();
                    m_NeedUpdateFileList = null;

                    m_UpdateUnitMap.Clear();
                    m_UpdateUnitMap = null;
                }
            }

            ClearLoader();

            MoveABConfig2Use();

            if (m_Record != null)
            {
                m_Record.Delete();
            }

            if (m_UpdateListener != null)
            {
                m_UpdateListener(this);
                m_UpdateListener = null;
            }
        }