public static void Set_xy(long id, int x, int y) //2. 根据id设置xy值 { if (TankMap.ContainsKey(id)) { TankMap[id] = new CONFIG.xy_Value(x, y); } else { Debug.LogError("id不存在"); } }
public static Dictionary <long, String> name_Map = new Dictionary <long, String>(); //存放玩家名字 public static void Add(long id) //1. 添加玩家 { CONFIG.xy_Value xy = new CONFIG.xy_Value(); TankMap.Add(id, xy); }