This commit is contained in:
parent
37263081db
commit
443139d785
|
@ -178,24 +178,24 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
break;
|
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);
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue