添加退出APP功能,安徽宿州砀山古城商业街苏州场景

This commit is contained in:
ZYT
2025-12-06 11:41:20 +08:00
parent c572c17727
commit 8a20cc9c7a
61 changed files with 30183 additions and 6 deletions

View File

@@ -41,6 +41,7 @@ public enum GamePlace
Nanjing_Qixia_Yaohuamen_Jindiguangchang = 17,
Nanjing_Qixia_Yaohuamen_Jindiguangchang_nei = -17,
Anshan_Suzhou_Yueshan_Guchengshangyejie = 18,
Anhui_Suzhou_Yueshan_Guchengshangyejie_2=-18,
Gansu_Longnan_Shicheng_Dongsheng = 19,
Shandong_Heze_Yuncheng_Gefuli = 20,
Wulanhaote_Ouya_Shangchang = 21,
@@ -153,7 +154,7 @@ public class GameManager : MonoBehaviour
[Header("AI角色")]
public GameObject aiCharacterPre;//AI角色预制体
private GameObject aiCharacter;//AI角色实例
private void Awake()
{
@@ -203,6 +204,8 @@ public class GameManager : MonoBehaviour
loginInfo.shop = 15;
if(GameInit.Ins.gamePlace== GamePlace.Nanjing_Qixia_Yaohuamen_Jindiguangchang_nei)
loginInfo.shop = 17;
if(GameInit.Ins.gamePlace== GamePlace.Anhui_Suzhou_Yueshan_Guchengshangyejie_2)
loginInfo.shop = 18;
if(GameInit.Ins.gamePlace== GamePlace.Wulanhaote_Wanda_Shangchang)
loginInfo.shop = 21;
if(GameInit.Ins.gamePlace== GamePlace.Hunan_Hengyang_Zhuhui_Dongzhoudao_nei)
@@ -607,6 +610,10 @@ public class GameManager : MonoBehaviour
{
EnergyPump.transform.position = new Vector3(-1.33f, 0, 17.38f);
}
if (GameInit.Ins.gamePlace == GamePlace.Anhui_Suzhou_Yueshan_Guchengshangyejie_2)
{
EnergyPump.transform.position = new Vector3(2f, 0, 2f);
}
EnergyPumpTag++;
EnergyPump.GetComponent<EnergyPump>().Init(EnergyPumpTag);
@@ -824,7 +831,11 @@ public class GameManager : MonoBehaviour
ShowEndGameUI(true);
GameInit.Ins.PlayAudio("1.17", GameInit.Ins.self.transform, true);
AudioManager.Ins?.SoundPlay("bgm4", true);
MonoSingleton<CoroutineTaskManager>.Instance.WaitSecondTodo(() =>
{
Debug.Log("游戏结束5秒后退出");
Application.Quit();
}, 6f);
////修改处销毁AI角色
if (aiCharacter != null)
{
@@ -852,7 +863,11 @@ public class GameManager : MonoBehaviour
isGameEnd = true;
CurEnemyDie();
AudioManager.Ins?.SoundPlay("bgm4", true);
MonoSingleton<CoroutineTaskManager>.Instance.WaitSecondTodo(() =>
{
Debug.Log("游戏结束5秒后退出");
Application.Quit();
}, 6f);
//修改处销毁AI角色
if (aiCharacter != null)
{