@@ -337,5 +337,11 @@ namespace GFGGame
ViewManager.Show<MainUIView>(null, null, true);
}
+ public static void ShowExitAlert()
+ {
+ AlertSystem.Show("我会想你的")
+ .SetLeftButton(true, "继续游戏")
+ .SetRightButton(true, "退出游戏", (object data) => { Application.Quit(); });
+ }
@@ -83,6 +83,19 @@
+ public static void Exit()
+ switch (LauncherConfig.ChannelId)
+ case (int)ChannelID.Test:
+ GameController.ShowExitAlert();
+ break;
+ default:
+
public static bool IsTaptap
{
get
@@ -697,9 +697,7 @@ namespace GFGGame
if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Home))
- AlertSystem.Show("我会想你的")
- .SetLeftButton(true, "继续游戏")
- .SetRightButton(true, "退出游戏", (object data) => { Application.Quit(); });
+ QDManager.Exit();