Main/System/Battle/BattleWin.cs
@@ -6,6 +6,7 @@ { // 组件引用 public Transform mountPoint; [SerializeField] Button fightBtn; private BattleRootNode battleRootNode = null; @@ -22,6 +23,11 @@ // 初始化组件引用 绑定按钮等UI组件事件 btnStop.AddListener(PauseGame); fightBtn.AddListener(()=> { UIManager.Instance.GetUI<MainWin>()?.ClickFunc(0); }); } private void PauseGame()