hch
7 天以前 63c69d907fc4615917ba06baa1401f0f0e931ef2
0312 优化战场暂停继承问题
2个文件已修改
31 ■■■■■ 已修改文件
Main/System/Battle/BattleField/BattleField.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleField/StoryBattleField.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleField/BattleField.cs
@@ -565,18 +565,8 @@
    
    //暂停的原因有很多,需要检查各种状态
    bool CanResumeGame()
    protected virtual bool CanResumeGame()
    {
        if (NewBieCenter.Instance.IsPauseStoryBattleState())
        {
            return false;
        }
        if (UIManager.Instance.IsOpened<EquipExchangeWin>())
        {
            return false;
        }
        return true;
    }
Main/System/Battle/BattleField/StoryBattleField.cs
@@ -290,10 +290,27 @@
            battleWin.SetBattleField(this);
        }
    }
    protected override void SetRootNodePosition()
    {
        battleRootNode.imgBackground.rectTransform.anchoredPosition = battleRootNode.bgPos1.anchoredPosition;
        battleRootNode.battleNode.anchoredPosition = battleRootNode.battleNodePos1.anchoredPosition;
    }
    //暂停的原因有很多,需要检查各种状态
    protected override bool CanResumeGame()
    {
        if (NewBieCenter.Instance.IsPauseStoryBattleState())
        {
            return false;
        }
        if (UIManager.Instance.IsOpened<EquipExchangeWin>())
        {
            return false;
        }
        return true;
    }
}