From ab2cebf34cd03b99003cc459d620c5bc877fdaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=90=8D?= <3077614386@qq.com> Date: Tue, 23 Jan 2024 20:27:59 +0800 Subject: [PATCH] 1 --- Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs | 3 ++- .../Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);