添加吉林长春朝阳欧亚卖场场景,浙江温州,山东潍坊临朐万达广场修改南京浦口龙湖天街场景,河北衡水衡水桃城万达场景

This commit is contained in:
ZYT
2026-01-07 09:42:49 +08:00
parent b69bc87c80
commit 5331e5b9d9
68 changed files with 85735 additions and 195 deletions

View File

@@ -119,7 +119,7 @@ public class Boss : Enemy
if (GameInit.Ins.gamePlace == GamePlace.Gansu_Jinchang_Jinchuan_Shijiguangchang_Shiwai)
endValue = 0.51f;
if (GameInit.Ins.gamePlace == GamePlace.Ningxia_Yinchuan_Jinfeng_XinhualianGuangchang)
endValue = 15.75f;
endValue = 7.03f;
if (GameInit.Ins.gamePlace == GamePlace.Hunan_Zhuzhou_Wanda_Shennongcheng_Chaowanshe)
endValue = 1.28f;
if(GameInit.Ins.gamePlace == GamePlace.Shandong_Jining_Shangchang)
@@ -419,7 +419,7 @@ public class Boss : Enemy
}
if (GameInit.Ins.gamePlace == GamePlace.Ningxia_Yinchuan_Jinfeng_XinhualianGuangchang)
{
transform.DOMove(new Vector3(15.09f, 3f, 15.75f), 4).OnComplete(() =>
transform.DOMove(new Vector3(13.97f, 3f, 7.03f), 4).OnComplete(() =>
{
Both();
});
@@ -446,6 +446,20 @@ public class Boss : Enemy
Both();
});
}
if (GameInit.Ins.gamePlace == GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
{
transform.DOMove(new Vector3(-5.4f, 3f, -3.3f), 4).OnComplete(() =>
{
Both();
});
}
if (GameInit.Ins.gamePlace == GamePlace.Jilin_Changchun_Chaoyang_OuyaMaichang)
{
transform.DOMove(new Vector3(8.97f, 3f, -5.32f), 4).OnComplete(() =>
{
Both();
});
}
else
{

View File

@@ -688,6 +688,36 @@ public class DropShip : Enemy
_isShow = false;
});
}
if (GameInit.Ins.gamePlace == GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
{
transform.DOMove(new Vector3(12.3f, 5f, -1f), 4).OnComplete(() =>
{
isAttack = true;
foreach (var item in tailGas)
{
item.SetActive(true);
}
bloodSlider.gameObject.SetActive(true);
isShield = false;
shieldObj.SetActive(false);
_isShow = false;
});
}
if (GameInit.Ins.gamePlace == GamePlace.Jilin_Changchun_Chaoyang_OuyaMaichang)
{
transform.DOMove(new Vector3(12.5f, 5f, -3.8f), 4).OnComplete(() =>
{
isAttack = true;
foreach (var item in tailGas)
{
item.SetActive(true);
}
bloodSlider.gameObject.SetActive(true);
isShield = false;
shieldObj.SetActive(false);
_isShow = false;
});
}
else
{

View File

@@ -434,7 +434,7 @@ public class Leviathan : Enemy
}
else if (GameInit.Ins.gamePlace == GamePlace.Hebei_Hengshui_Taocheng_WandaGuangchang)
{
transform.DOMove(new Vector3(17.8f, 1.5f, 2.7f), 2).OnComplete(() =>
transform.DOMove(new Vector3(-8.4f, 3.5f, 10.9f), 2).OnComplete(() =>
{
Both();
});
@@ -453,6 +453,27 @@ public class Leviathan : Enemy
Both();
});
}
else if (GameInit.Ins.gamePlace == GamePlace.Zhejiang_Wenzhou_Cangnan_Yintaicheng)
{
transform.DOMove(new Vector3(1.91f, -3.5f,14.92f), 2).OnComplete(() =>
{
Both();
});
}
else if (GameInit.Ins.gamePlace == GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
{
transform.DOMove(new Vector3(-7.36f, -3.5f,-6.45f), 2).OnComplete(() =>
{
Both();
});
}
else if (GameInit.Ins.gamePlace == GamePlace.Jilin_Changchun_Chaoyang_OuyaMaichang)
{
transform.DOMove(new Vector3(12.5f, -3.5f,-9.7f), 2).OnComplete(() =>
{
Both();
});
}
else
{

View File

@@ -335,7 +335,7 @@ public class MachineDragon : Enemy
}
else if(GameInit.Ins.gamePlace == GamePlace.Nanjing_Pukou_Longhutianjie)
{
transform.DOMove(new Vector3(-0.8f,0f,4.11f), 4).OnComplete(() =>
transform.DOMove(new Vector3(-3.49f,0f,2.27f), 4).OnComplete(() =>
{
Both();
});
@@ -419,7 +419,7 @@ public class MachineDragon : Enemy
}
else if (GameInit.Ins.gamePlace == GamePlace.Hebei_Hengshui_Taocheng_WandaGuangchang)
{
transform.DOMove(new Vector3(11.14f, 0f, 0.32f), 4).OnComplete(() =>
transform.DOMove(new Vector3(-5.5f, 0f, 3.34f), 4).OnComplete(() =>
{
Both();
});
@@ -431,6 +431,27 @@ public class MachineDragon : Enemy
Both();
});
}
else if (GameInit.Ins.gamePlace == GamePlace.Zhejiang_Wenzhou_Cangnan_Yintaicheng)
{
transform.DOMove(new Vector3(-0.73f, 0f, 6.83f), 4).OnComplete(() =>
{
Both();
});
}
else if (GameInit.Ins.gamePlace == GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
{
transform.DOMove(new Vector3(-7.35f, 0f,-4.37f), 4).OnComplete(() =>
{
Both();
});
}
else if (GameInit.Ins.gamePlace == GamePlace.Jilin_Changchun_Chaoyang_OuyaMaichang)
{
transform.DOMove(new Vector3(3.82f, 0f,-7.56f), 4).OnComplete(() =>
{
Both();
});
}
else
{

View File

@@ -86,6 +86,9 @@ public enum GamePlace
Zhejiang_Wenzhou_Cangnan_Yintaicheng = 48,
Shandong_Jining_Shangchang_3=49,
Anhui_Manshan_XingyueGuangchang = 50,
Shandong_Weifang_Linqu_WandaGuangchang = 51,
Guangdong_Foushan_Haiyangguang = 52,
Jilin_Changchun_Chaoyang_OuyaMaichang=53,
}
public class GameManager : MonoBehaviour
@@ -116,7 +119,7 @@ public class GameManager : MonoBehaviour
public GameObject EnergyPumpPre;
public GameObject gameStartPointPre;
public GameObject enemyDoorPre;
public GameObject point ;
[Header("敌人")]
public GameObject[] enemyPre;
@@ -188,6 +191,11 @@ public class GameManager : MonoBehaviour
LoginPanel.Show();
// 新增:初始化指引系统
InitializeGuideArrow();
if (gameStartPointPre != null)
{
point = Instantiate(gameStartPointPre);
point.SetActive(false); // 初始隐藏
}
#if !UNITY_EDITOR
PXR_Enterprise.InitEnterpriseService();
PXR_Enterprise.BindEnterpriseService();
@@ -217,7 +225,7 @@ public class GameManager : MonoBehaviour
});
loginInfo.deviceSn = GetPicoSn();
loginInfo.startAt = ConvertTimestampToDateTime(GetTimestamp()) + "";
loginInfo.shop = 50;
loginInfo.shop = 0;
#if !UNITY_EDITOR && UNITY_ANDROID && PICO
loginInfo.shop = (int)GameInit.Ins.gamePlace;
if(GameInit.Ins.gamePlace== GamePlace.Company1FloorShiwai)
@@ -257,6 +265,8 @@ public class GameManager : MonoBehaviour
if(GameInit.Ins.gamePlace== GamePlace.Hebei_Hengshui_Taocheng_WandaGuangchang)
loginInfo.shop = 44;
if(GameInit.Ins.gamePlace== GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
loginInfo.shop = 52;
#endif
//loginInfo.shop = 0;
loginInfo.gameId = 5;
@@ -667,7 +677,7 @@ public class GameManager : MonoBehaviour
}
if (GameInit.Ins.gamePlace == GamePlace.Hebei_Hengshui_Taocheng_WandaGuangchang)
{
EnergyPump.transform.position = new Vector3(-0.35f, 0, 4.41f);
EnergyPump.transform.position = new Vector3(-5.47f, 0, 7.12f);
}
if (GameInit.Ins.gamePlace == GamePlace.Shandong_Jining_Shangchang_3)
{
@@ -677,6 +687,18 @@ public class GameManager : MonoBehaviour
{
EnergyPump.transform.position = new Vector3(0.08f, 0, 6.77f);
}
if (GameInit.Ins.gamePlace == GamePlace.Zhejiang_Wenzhou_Cangnan_Yintaicheng)
{
EnergyPump.transform.position = new Vector3(-0.12f, 0, 4.64f);
}
if (GameInit.Ins.gamePlace == GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
{
EnergyPump.transform.position = new Vector3(-7.19f, 0, -5.37f);
}
if (GameInit.Ins.gamePlace == GamePlace.Jilin_Changchun_Chaoyang_OuyaMaichang)
{
EnergyPump.transform.position = new Vector3(2.7f, 0, -6.55f);
}
EnergyPumpTag++;
EnergyPump.GetComponent<EnergyPump>().Init(EnergyPumpTag);
@@ -692,8 +714,8 @@ public class GameManager : MonoBehaviour
GameStart = true;
isGamePlay = false;
GameObject point = Instantiate(gameStartPointPre);
point.SetActive(true );
if (GameInit.Ins.gamePlace == GamePlace.LiaoningAnShan)
{
point.transform.position = new Vector3(-2, 0, 2);
@@ -706,6 +728,15 @@ public class GameManager : MonoBehaviour
{
point.transform.position = new Vector3(4.15f, 0, 2.3f);
}
if (GameInit.Ins.gamePlace == GamePlace.Shandong_Weifang_Linqu_WandaGuangchang)
{
point.transform.position = new Vector3(-4.97f, 0, -4f);
}
if (GameInit.Ins.gamePlace == GamePlace.Hebei_Hengshui_Taocheng_WandaGuangchang)
{
point.transform.position = new Vector3(-7.51f, 0, -2.78f);
}
else
{
point.transform.position = new Vector3(0.27f, 0, 2.84f);
@@ -1010,7 +1041,7 @@ public class GameManager : MonoBehaviour
{
Debug.Log("游戏结束5秒后退出");
Application.Quit();
}, 6f);
}, 60f);
////修改处销毁AI角色
if (aiCharacter != null)
{
@@ -1042,7 +1073,7 @@ public class GameManager : MonoBehaviour
{
Debug.Log("游戏结束5秒后退出");
Application.Quit();
}, 6f);
}, 60f);
//修改处销毁AI角色
if (aiCharacter != null)
{
@@ -1109,7 +1140,7 @@ public class GameManager : MonoBehaviour
// 修改 UpdateGuideArrowPosition 方法
private void UpdateGuideArrowPosition()
{
if (!isGuideArrowActive || gameStartPointPre == null || GameInit.Ins.self == null)
if (!isGuideArrowActive || point == null || GameInit.Ins.self == null)
return;
// 获取玩家当前位置
@@ -1125,7 +1156,7 @@ public class GameManager : MonoBehaviour
if (distanceMoved > updatePathThreshold)
{
// 获取门的位置
Vector3 doorPosition = gameStartPointPre.transform.position;
Vector3 doorPosition = point.transform.position;
// 使用曲线检测和路径平滑
UpdatePathWithCurveDetection(currentPlayerPosition, doorPosition);
@@ -1313,14 +1344,14 @@ public class GameManager : MonoBehaviour
public void ShowGuideArrow()
{
if (guideArrowComponent != null && gameStartPointPre != null && GameInit.Ins.self != null)
if (guideArrowComponent != null && point != null && GameInit.Ins.self != null)
{
guideArrowComponent.ShowPath();
isGuideArrowActive = true;
// 初始化路径
Vector3 playerPosition = GameInit.Ins.self.transform.position;
Vector3 doorPosition = gameStartPointPre.transform.position;
Vector3 doorPosition = point.transform.position;
UpdatePathWithCurveDetection(playerPosition, doorPosition);
// 记录初始位置
@@ -1347,13 +1378,13 @@ public class GameManager : MonoBehaviour
public void StartGuide()
{
if (gameStartPointPre != null && GameInit.Ins.self != null)
if (point != null && GameInit.Ins.self != null)
{
ShowGuideArrow();
// 初始化路径
Vector3 playerPosition = GameInit.Ins.self.transform.position;
Vector3 doorPosition = gameStartPointPre.transform.position;
Vector3 doorPosition = point.transform.position;
// 使用新的路径计算方法
UpdatePathWithCurveDetection(playerPosition, doorPosition);