feat(player): 添加玩家阵型保存功能

新增savedFormation字段用于存储玩家的阵型配置,
包括角色ID列表和对应的格子索引位置信息。
```
This commit is contained in:
huadexuan committed 2026-09-29 23:21:44 +08:00
1 parent e127da5416
commit 1abd0de32f
16 files changed
+432 -2930

No files matched your search

+6
View File
@@ -236,6 +236,12 @@ public class EnemyCastleAI : MonoBehaviour
if (unitBase != null)
{
unitBase.InitializeFromPlayerData(data.GetMaxHealth(1), data.GetAttackPower(1), data.GetMoveSpeed(1));
// 如果是敌人(teamId != 0),增大寻敌距离
if (spawnTeamId != 0)
{
unitBase.detectionRange = 100f; // 从默认30增加到100
}
}
return true;