diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs index 42919b40..2ab43d6a 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs @@ -178,24 +178,24 @@ public class UnmannedAerialVehicleManage : MonoBehaviour break; } - var _unmannedAerialVehicle = unmannedAerialVehicles.FindAll(x => x != null&&x.gameObject.activeSelf); - if (_unmannedAerialVehicle.Count == 0) - { - string nowData = string.Format("{0},{1}", "SetToBeDestroyed", equipmentCommon.deviceID); - Debug.Log(nowData); - _ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData)); - UploadLog(equipmentCommon.deviceID); - WWWForm headers = new WWWForm(); - headers.AddField("id", equipmentCommon.deviceID); - StartCoroutine(PostString(Url_Deletepracticedevicedetail, headers, data => - { - Debug.Log(data); - Destroy(gameObject); - })); - } + } - + var _unmannedAerialVehicle = unmannedAerialVehicles.FindAll(x => x != null && x.gameObject.activeSelf); + if (_unmannedAerialVehicle.Count == 0) + { + string nowData = string.Format("{0},{1}", "SetToBeDestroyed", equipmentCommon.deviceID); + Debug.Log(nowData); + _ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData)); + UploadLog(equipmentCommon.deviceID); + WWWForm headers = new WWWForm(); + headers.AddField("id", equipmentCommon.deviceID); + StartCoroutine(PostString(Url_Deletepracticedevicedetail, headers, data => + { + Debug.Log(data); + Destroy(gameObject); + })); + } } ///