血量显示在玩家头顶

This commit is contained in:
2026-09-22 17:51:52 +08:00
parent b11da48e23
commit 414fcafe1d
5 changed files with 61 additions and 35 deletions
+1 -2
View File
@@ -90,8 +90,7 @@ E:\GD_Projects\agame\
│ │ ├─ CameraRig → SpringArm → Camera ← 远端玩家会被删掉这一支
│ │ ├─ Body → Mesh ← 视觉层,换角色模型挂这里
│ │ ├─ Sync (MultiplayerSynchronizer) ← 负责同步位置和朝向
│ │ └─ Hud (CanvasLayer) ← 本地玩家的血条,远端玩家会被隐藏
│ │ └─ HealthLabel (Label)
│ │ └─ HealthLabel (Label3D) ← 头顶血条(3D 世界里的文字,跟着角色走)
│ ├── player.gd ← 加了「本地 / 远端」分支
│ └── player_sync.tres ← 同步配置:到底同步哪几个属性
└── tests\