diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs index 5fbd7a2d..7b4bc3a7 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs @@ -143,7 +143,8 @@ public class UnmannedAerialVehicle : MonoBehaviour { string nowData = string.Format("{0},{1}", "SetToBeDestroyed", _equipmentCommon.deviceID); //Debug.Log(nowData); - _ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData)); + //_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData)); + DeviceManager.Instance.send2roomStr.Enqueue(nowData); string currentTime = System.DateTime.Now.ToString(); string _log = currentTime + " " + unmannedAerialVehicleManage.equipmentCommon.equipmentType + "(" + unmannedAerialVehicleManage.equipmentCommon.deviceID + ")" + "编号" + serialNumber + "子无人机" + "攻击摧毁了" + _equipmentCommon.equipmentType + "(" + _equipmentCommon.deviceID + ")"; diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs index 487416af..b239dca6 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs @@ -196,7 +196,8 @@ public class UnmannedAerialVehicleManage : MonoBehaviour { string nowData = string.Format("{0},{1}", "SetToBeDestroyed", equipmentCommon.deviceID); //Debug.Log(nowData); - _ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData)); + //_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData)); + DeviceManager.Instance.send2roomStr.Enqueue(nowData); UploadLog(equipmentCommon.deviceID); WWWForm headers = new WWWForm(); headers.AddField("id", equipmentCommon.deviceID);