mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-07 04:07:13 +08:00
refactor(网络同步): 重构实体同步逻辑和玩家生成流程
- 将EntityBase的health改为@export变量以便同步 - 添加MultiplayerSynchronizer节点处理网络同步 - 修改Wave.next()方法处理EncodedObjectAsID类型 - 添加findPlayer方法通过名称查找玩家 - 调整玩家生成流程,确保UIState.player正确设置
This commit is contained in:
@@ -18,7 +18,7 @@ func _physics_process(delta):
|
||||
UIState.setPanel("MakeFeed")
|
||||
|
||||
@rpc("authority")
|
||||
func nextWave(waves: Array[Wave]):
|
||||
func nextWave(waves: Array):
|
||||
Wave.next(waves)
|
||||
|
||||
func spawnWave():
|
||||
|
||||
Reference in New Issue
Block a user