少年修仙传客户端代码仓库
client_Hale
2018-11-22 2615a6d5d70cf3a8b8cb6335460255eab5917ef2
4241 【前端】用易接SDK接入传统渠道
1个文件已修改
21 ■■■■ 已修改文件
Core/GameEngine/Login/Launch.cs 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Login/Launch.cs
@@ -13,9 +13,11 @@
    static public LaunchStage currentStage { get { return m_CurrentStage; } }
    static float m_Progress = 0f;
    static public float progress {
    static public float progress
    {
        get { return m_Progress; }
        set {
        set
        {
            if (m_Progress != value)
            {
                m_Progress = value;
@@ -138,16 +140,27 @@
        }
    }
    private byte m_Step = 0;
    void Start()
    {
        m_Step = 0;
        SoundPlayer.Instance.PlayLoginMusic();
        Config.Instance.PreLoadConfigs();
        ServerListCenter.Instance.RequestJumpUrl();
        WindowCenter.Instance.OpenFromLocal<LaunchWin>();
        DebugUtility.Instance.CreateDebugRoot();
        StartCoroutine(Co_Lanuch());
    }
    void Update()
    {
        if (m_Step == 1)
        {
            ServerListCenter.Instance.RequestJumpUrl();
            m_Step = 2;
        }
    }
    IEnumerator Co_Lanuch()
@@ -158,6 +171,8 @@
            yield return null;
        }
#endif
        m_Step = 1;
        var cpu = 2;
        var memory = 2048;
        DeviceUtility.GetCpuAndMemory(out cpu, out memory);