public SyncData SendData() { SyncData data = new SyncData(); data.Add(1);//防止空 foreach (var ai in AI_List) { if (ai.Value == null) { Debug.LogFormat("ai_name:{0}", ai.Key); } data.AddString(ai.Key); data.Add(ai.Value.transform.position); data.Add(ai.Value.transform.eulerAngles); } return(data); }