少年修仙传客户端代码仓库
client_Hale
2018-08-24 26031223df23c6b2107c8a86f75a26a9553134b4
Fixed 去掉测试环境下的包体不等待SDK初始化的逻辑
1个文件已修改
15 ■■■■ 已修改文件
Core/GameEngine/Login/Launch.cs 15 ●●●● 补丁 | 查看 | 原始文档 | 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;
@@ -69,12 +71,9 @@
    IEnumerator Co_Lanuch()
    {
#if !UNITY_EDITOR
        if (VersionConfig.Get().versionAuthority == VersionAuthority.Release)
        while (!SDKUtility.Instance.InitFinished)
        {
            while (!SDKUtility.Instance.InitFinished)
            {
                yield return null;
            }
            yield return null;
        }
#endif
        var cpu = 2;
@@ -253,7 +252,7 @@
        while (!LaunchPostProcess.Instance.completed
            && LaunchPostProcess.Instance.progress < (Application.platform == RuntimePlatform.WindowsEditor ? 1f : 0.8f))
        {
            progress = Mathf.Clamp(progressBuf + LaunchPostProcess.Instance.progress * (1 - progressBuf) , progressBuf, 1f);
            progress = Mathf.Clamp(progressBuf + LaunchPostProcess.Instance.progress * (1 - progressBuf), progressBuf, 1f);
            yield return null;
        }