少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-29 777c8316fe11aa3ec3b8494b5d6f33c3af6e3b8d
1757  切换帐号bug
2个文件已修改
40 ■■■■■ 已修改文件
Core/GameEngine/Login/LoginStage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/StageManager.cs 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Login/LoginStage.cs
@@ -10,7 +10,7 @@
    public override void Initialize()
    {
        base.Initialize();
        WindowCenter.Instance.OpenFromLocal<LaunchBackGroundWin>();
        WindowCenter.Instance.Open<LaunchBackGroundWin>(true);
        var backGroundWin = WindowCenter.Instance.Get<LaunchBackGroundWin>();
        if (backGroundWin != null)
Fight/Stage/StageManager.cs
@@ -17,32 +17,40 @@
    public event Action<float> loadingProgressEvent;
    bool m_IsServerPreparing = false;
    public bool isServerPreparing {
    public bool isServerPreparing
    {
        get { return m_IsServerPreparing; }
        set { m_IsServerPreparing = value; }
    }
    public Stage.E_StageType StageType {
        get {
    public Stage.E_StageType StageType
    {
        get
        {
            return m_StageType;
        }
    }
    public Stage CurrentStage {
        get {
    public Stage CurrentStage
    {
        get
        {
            return m_CurrentStage;
        }
    }
    int m_CurrentMapId;
    public int currentMapId {
    public int currentMapId
    {
        get { return m_CurrentMapId; }
        private set { m_CurrentMapId = value; }
    }
    int m_CurrentMapResID;
    public int currentMapResId {
        get {
    public int currentMapResId
    {
        get
        {
            return m_CurrentMapResID;
        }
        private set { m_CurrentMapResID = value; }
@@ -53,9 +61,11 @@
    float m_LoadingProgress = 0f;
    float loadingProgress {
    float loadingProgress
    {
        get { return m_LoadingProgress; }
        set {
        set
        {
            m_LoadingProgress = value;
            if (loadingProgressEvent != null)
            {
@@ -119,9 +129,9 @@
    {
        if (currentMapResId != 0 && currentMapResId == mapResConfigID)
        {
            //OperationLogCollect.Instance.BugReport("Warning", "StageManager Load Same MapID:" + mapResConfigID);
            //OperationLogCollect.Instance.BugReport("Warning", "StageManager Load Same MapID:" + mapResConfigID);
#if UNITY_EDITOR
            Debug.LogFormat("StageManager出现加载相同地图行为:" + mapResConfigID);
            Debug.LogFormat("StageManager出现加载相同地图行为:" + mapResConfigID);
#endif
            yield break;
        }
@@ -162,7 +172,7 @@
                WindowCenter.Instance.CloseOthers<LaunchBackGroundWin>();
                if (!WindowCenter.Instance.CheckOpen<LaunchBackGroundWin>())
                {
                    WindowCenter.Instance.OpenFromLocal<LaunchBackGroundWin>();
                    WindowCenter.Instance.Open<LaunchBackGroundWin>(true);
                }
                WindowCenter.Instance.CloseOthers<LaunchBackGroundWin>();
@@ -172,7 +182,7 @@
                WindowCenter.Instance.CloseOthers<LaunchBackGroundWin>();
                if (!WindowCenter.Instance.CheckOpen<LaunchBackGroundWin>())
                {
                    WindowCenter.Instance.OpenFromLocal<LaunchBackGroundWin>();
                    WindowCenter.Instance.Open<LaunchBackGroundWin>(true);
                }
                WindowCenter.Instance.CloseOthers<LaunchBackGroundWin>();