yyl
2025-09-16 d849d607495170551c05d9abeae9eb6aaf8960fa
125 战斗 特效穿透问题 临时解决方案
1个文件已修改
20 ■■■■■ 已修改文件
Main/System/Battle/BattleWin.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleWin.cs
@@ -25,17 +25,17 @@
    private void PauseGame()
    {
        // BattleDebug.LogError("PauseeGame");
        // if (null == battleField)
        //     return;
        if (null == battleField)
            return;
        // battleField.IsPause = !battleField.IsPause;
        battleField.IsPause = !battleField.IsPause;
        // BattleDebug.LogError(" is pause " + battleField.IsPause.ToString());
        BattleDebug.LogError(" is pause " + battleField.IsPause.ToString());
        if (battleField != null)
        {
            battleField.operationAgent.DoNext();
        }
        // if (battleField != null)
        // {
        //     battleField.operationAgent.DoNext();
        // }
    }
    protected override void OnPreOpen()
@@ -71,7 +71,8 @@
        if (battleRootNode != null)
        {
            battleRootNode.transform.SetParent(null);
            battleRootNode.transform.SetParent(Launch.Instance.transform);
            battleRootNode.transform.localPosition = new Vector3(-10000, -10000, 0);
        }
        battleField = null;
@@ -92,6 +93,7 @@
        battleField = _battleField;
        if (battleRootNode != null)
        {
            battleRootNode.transform.localPosition = Vector3.zero;
            battleRootNode.transform.SetParent(Launch.Instance.transform);
        }