少年修仙传客户端代码仓库
client_linchunjie
2019-04-17 11997ece0dc4980eba3dd8889d37adb8376e14cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Snxxz.UI;
using System;
 
[XLua.LuaCallCSharp]
public class LaunchPostProcess : SingletonMonobehaviour<LaunchPostProcess>
{
 
    bool m_Completed = false;
    public bool completed { get { return m_Completed; } set { m_Completed = value; } }
 
    DateTime startTime;
 
    public void Begin()
    {
        completed = false;
        startTime = DateTime.Now;
        ConfigInitiator.Init();
    }
 
    private void Update()
    {
        if (!completed && ConfigInitiator.done)
        {
            DebugEx.LogFormat("解析配置表耗时:{0}", (DateTime.Now - startTime).TotalMilliseconds);
 
            try
            {
                InGameDownLoad.Instance.ParseRewardConfig();
                LegendPropertyUtility.Init();
                ItemLogicUtility.Instance.Init();
                ModelCenter.Instance.Init();
                SkillHelper.Instance.Init();
                StatusMgr.Instance.Init();
                GAMgr.Instance.Init();
                FlyObjectManager.Instance.Initialize();
                MapTransferUtility.Instance.Initialize();
                NewBieCenter.Instance.Init();
 
                if (Application.isMobilePlatform)
                {
                    AssetDeCompressTask.Delete7zFiles(ResourcesPath.Instance.ExternalStorePath);
                }
            }
            catch (Exception ex)
            {
                Debug.LogErrorFormat("严重警告:游戏逻辑初始化失败,无法进入游戏!错误:{0}", ex);
                ExceptionCatcher.ReportException("严重警告,游戏初始化失败", ex);
            }
            finally
            {
                completed = true;
            }
        }
 
    }
 
}