【Bug】战斗中返回建造场景
parent
77c8a4bed9
commit
265131d083
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue