【Bug】战斗中返回建造场景

iOS_release
zhangaotian 2024-08-22 17:29:54 +08:00
parent 77c8a4bed9
commit 265131d083
3 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,6 @@
using Event = cfg.BI.Event; using Event = cfg.BI.Event;
using Framework.Constants; using Framework.Constants;
using Framework.Manager;
using Gameplay.Manager; using Gameplay.Manager;
using Framework.Event; using Framework.Event;
using Gameplay.Level; using Gameplay.Level;
@ -37,7 +38,7 @@ public class UILosePanelController : UIWindow
{ {
CloseWindow(true); CloseWindow(true);
UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true); UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true);
GameStateManager.Instance.ChangeState(new GameStateStart()); GameStateManager.Instance.ChangeState(new GameStateStart(BuildManager.Instance.CurBuildInfo.BuildSceneID));
BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_back_home, BIManager.Reason.ClickOnLosePanel.ToString()); BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_back_home, BIManager.Reason.ClickOnLosePanel.ToString());
} }

View File

@ -7,6 +7,7 @@ using Gameplay.Level;
using UnityEngine.UI; using UnityEngine.UI;
using Framework.Event; using Framework.Event;
using Gameplay.Manager; using Gameplay.Manager;
using Framework.Manager;
using System.Collections; using System.Collections;
using Framework.Constants; using Framework.Constants;
@ -75,7 +76,7 @@ public class UIWinPanelController : UIWindow
BIManager.Reason.ClickOnWinPanel.ToString()); BIManager.Reason.ClickOnWinPanel.ToString());
CloseWindow(true); CloseWindow(true);
UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true); UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true);
GameStateManager.Instance.ChangeState(new GameStateStart()); GameStateManager.Instance.ChangeState(new GameStateStart(BuildManager.Instance.CurBuildInfo.BuildSceneID));
EventManager.Instance.Send(EventManager.EventName.StartBackToMain); EventManager.Instance.Send(EventManager.EventName.StartBackToMain);
} }

View File

@ -2,9 +2,10 @@ using Framework.BI;
using Framework.UI; using Framework.UI;
using Gameplay.Game; using Gameplay.Game;
using UnityEngine.UI; using UnityEngine.UI;
using Gameplay.Manager;
using Framework.Constants;
using Framework.Event; using Framework.Event;
using Gameplay.Manager;
using Framework.Manager;
using Framework.Constants;
using Event = cfg.BI.Event; using Event = cfg.BI.Event;
public class UIPausePanelController : UIWindow public class UIPausePanelController : UIWindow
@ -30,7 +31,7 @@ public class UIPausePanelController : UIWindow
BIManager.Instance.TrackEventLevel(Event.level_back_home, BIManager.Reason.ClickOnPausePanel.ToString()); BIManager.Instance.TrackEventLevel(Event.level_back_home, BIManager.Reason.ClickOnPausePanel.ToString());
UIManager.Instance.CloseWindow(UIConstants.UIPausePanel, true); UIManager.Instance.CloseWindow(UIConstants.UIPausePanel, true);
UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true); UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true);
GameStateManager.Instance.ChangeState(new GameStateStart()); GameStateManager.Instance.ChangeState(new GameStateStart(BuildManager.Instance.CurBuildInfo.BuildSceneID));
} }
private void ContinueLevel() private void ContinueLevel()