This commit is contained in:
账号名 2024-01-23 20:27:59 +08:00
parent 9489544902
commit ab2cebf34c
2 changed files with 4 additions and 2 deletions

View File

@ -143,7 +143,8 @@ public class UnmannedAerialVehicle : MonoBehaviour
{ {
string nowData = string.Format("{0},{1}", "SetToBeDestroyed", _equipmentCommon.deviceID); string nowData = string.Format("{0},{1}", "SetToBeDestroyed", _equipmentCommon.deviceID);
//Debug.Log(nowData); //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 currentTime = System.DateTime.Now.ToString();
string _log = currentTime + " " + unmannedAerialVehicleManage.equipmentCommon.equipmentType + "(" + unmannedAerialVehicleManage.equipmentCommon.deviceID + ")" string _log = currentTime + " " + unmannedAerialVehicleManage.equipmentCommon.equipmentType + "(" + unmannedAerialVehicleManage.equipmentCommon.deviceID + ")"
+ "编号" + serialNumber + "子无人机" + "攻击摧毁了" + _equipmentCommon.equipmentType + "(" + _equipmentCommon.deviceID + ")"; + "编号" + serialNumber + "子无人机" + "攻击摧毁了" + _equipmentCommon.equipmentType + "(" + _equipmentCommon.deviceID + ")";

View File

@ -196,7 +196,8 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
{ {
string nowData = string.Format("{0},{1}", "SetToBeDestroyed", equipmentCommon.deviceID); string nowData = string.Format("{0},{1}", "SetToBeDestroyed", equipmentCommon.deviceID);
//Debug.Log(nowData); //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); UploadLog(equipmentCommon.deviceID);
WWWForm headers = new WWWForm(); WWWForm headers = new WWWForm();
headers.AddField("id", equipmentCommon.deviceID); headers.AddField("id", equipmentCommon.deviceID);