| | |
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using Snxxz.UI;
|
| | |
|
| | | using System;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | |
| | |
|
| | | bool m_Completed = false;
|
| | | public bool completed { get { return m_Completed; } set { m_Completed = value; } }
|
| | | public float progress { get { return Mathf.Clamp01((Time.time - startTime) * 0.1f + ConfigInitiator.progress * 0.7f); } }
|
| | |
|
| | | float startTime = 0f;
|
| | | DateTime startTime;
|
| | |
|
| | | public void Begin()
|
| | | {
|
| | | completed = false;
|
| | | startTime = Time.time;
|
| | | startTime = DateTime.Now;
|
| | | ConfigInitiator.Init();
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!completed && ConfigInitiator.done)
|
| | | {
|
| | | DebugEx.LogFormat("解析配置表耗时:{0}", (DateTime.Now - startTime).TotalMilliseconds);
|
| | |
|
| | | try
|
| | | {
|
| | | InGameDownLoad.Instance.ParseRewardConfig();
|
| | |
| | | {
|
| | | AssetDeCompressTask.Delete7zFiles(ResourcesPath.Instance.ExternalStorePath);
|
| | | }
|
| | |
|
| | | DebugEx.LogFormat("解析配置表耗时:{0}", Time.time - startTime);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|