mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(多人游戏): 添加玩家名称存储并优化多人游戏逻辑
在MultiplayerState中添加playerName静态变量用于存储玩家名称 修改Starter.gd中的startMultiplayerGame方法,保存玩家名称到MultiplayerState 优化EntityBase.gd的AI逻辑,仅当玩家名称匹配时才执行AI 移除不再需要的多人游戏同步方法
This commit is contained in:
@@ -21,6 +21,7 @@ static var stateColorMap = {
|
||||
}
|
||||
|
||||
static var state: ConnectionState = ConnectionState.DISCONNECTED
|
||||
static var playerName: String
|
||||
|
||||
static var maxPlayer: int = 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user