hch
2 天以前 8ab2b5bfa10eacc40b6f1f8c5eb37c28de4856cb
0312 战场位置调整
3个文件已修改
26 ■■■■■ 已修改文件
Main/System/Battle/BattleField/BattleField.cs 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleField/BattleRootNode.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleField/StoryBattleField.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleField/BattleField.cs
@@ -533,17 +533,10 @@
        }
    }
    public void SetRootNodePosition()
    protected virtual void SetRootNodePosition()
    {
        if (1 == MapID)
        {
            battleRootNode.imgBackground.rectTransform.anchoredPosition = new Vector2(0, -335f);
        }
        else
        {
            battleRootNode.imgBackground.rectTransform.anchoredPosition = new Vector2(0, -750f);
            // (battleRootNode.transform as RectTransform).anchoredPosition = new Vector2(100, 100);
        }
        battleRootNode.imgBackground.rectTransform.anchoredPosition = battleRootNode.bgPos2.anchoredPosition;
        battleRootNode.battleNode.anchoredPosition = battleRootNode.battleNodePos2.anchoredPosition;
    }
    public void ForceFinish()
Main/System/Battle/BattleField/BattleRootNode.cs
@@ -27,6 +27,11 @@
    private List<GameObject> _blueTeamNodeList = new List<GameObject>();
    public RawImage imgBackground;
    public RectTransform bgPos1;
    public RectTransform bgPos2;
    public RectTransform battleNode;
    public RectTransform battleNodePos1;
    public RectTransform battleNodePos2;
    void Awake()
    {
Main/System/Battle/BattleField/StoryBattleField.cs
@@ -141,7 +141,7 @@
        base.OnSettlement(turnFightStateData);
        BattleManager.Instance.MainFightRequest(4);
    }
    public override void HaveRest()
    {
@@ -266,4 +266,10 @@
                BattleDebug.LogError("action doesnt finish, wait a moment please");
        }
    }
    protected override void SetRootNodePosition()
    {
        battleRootNode.imgBackground.rectTransform.anchoredPosition = battleRootNode.bgPos1.anchoredPosition;
        battleRootNode.battleNode.anchoredPosition = battleRootNode.battleNodePos1.anchoredPosition;
    }
}