This commit is contained in:
parent
8f07e6c5d6
commit
e9267fd043
|
@ -29,7 +29,7 @@ namespace Assets.Zion.Scripts.Adam
|
||||||
{
|
{
|
||||||
if (hitInfo.collider.tag == "WRJ")
|
if (hitInfo.collider.tag == "WRJ")
|
||||||
{
|
{
|
||||||
Debug.Log("daadad");
|
//Debug.Log("daadad");
|
||||||
currentWRJ = hitInfo.collider.GetComponent<WRJController>();
|
currentWRJ = hitInfo.collider.GetComponent<WRJController>();
|
||||||
if (!wRJControllers.Contains(currentWRJ))
|
if (!wRJControllers.Contains(currentWRJ))
|
||||||
wRJControllers.Add(currentWRJ);
|
wRJControllers.Add(currentWRJ);
|
||||||
|
|
|
@ -136,7 +136,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
if (isPassMessage)
|
if (isPassMessage)
|
||||||
{
|
{
|
||||||
string nowData = GetSyncDis();
|
string nowData = GetSyncDis();
|
||||||
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);
|
DeviceManager.Instance.send2roomStr.Enqueue(nowData);
|
||||||
string currentTime = System.DateTime.Now.ToString();
|
string currentTime = System.DateTime.Now.ToString();
|
||||||
|
@ -183,7 +183,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
{
|
{
|
||||||
EquipmentCommon _equipmentCommon = _transform.GetComponent<EquipmentCommon>();
|
EquipmentCommon _equipmentCommon = _transform.GetComponent<EquipmentCommon>();
|
||||||
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));
|
||||||
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 + ")"
|
||||||
|
@ -192,9 +192,9 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
|
|
||||||
WWWForm headers = new WWWForm();
|
WWWForm headers = new WWWForm();
|
||||||
headers.AddField("id", _equipmentCommon.deviceID);
|
headers.AddField("id", _equipmentCommon.deviceID);
|
||||||
StartCoroutine(PostString(Url_Deletepracticedevicedetail, headers, data => {
|
//StartCoroutine(PostString(Url_Deletepracticedevicedetail, headers, data => {
|
||||||
Debug.Log(data);
|
// //Debug.Log(data);
|
||||||
}));
|
//}));
|
||||||
GameObject Bao = Instantiate(explodePrefab, _transform);
|
GameObject Bao = Instantiate(explodePrefab, _transform);
|
||||||
Bao.transform.localPosition = Vector3.zero;
|
Bao.transform.localPosition = Vector3.zero;
|
||||||
Bao.transform.SetParent(null);
|
Bao.transform.SetParent(null);
|
||||||
|
|
|
@ -192,14 +192,14 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
if (_unmannedAerialVehicle.Count == 0)
|
if (_unmannedAerialVehicle.Count == 0)
|
||||||
{
|
{
|
||||||
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));
|
||||||
UploadLog(equipmentCommon.deviceID);
|
UploadLog(equipmentCommon.deviceID);
|
||||||
WWWForm headers = new WWWForm();
|
WWWForm headers = new WWWForm();
|
||||||
headers.AddField("id", equipmentCommon.deviceID);
|
headers.AddField("id", equipmentCommon.deviceID);
|
||||||
StartCoroutine(PostString(Url_Deletepracticedevicedetail, headers, data =>
|
StartCoroutine(PostString(Url_Deletepracticedevicedetail, headers, data =>
|
||||||
{
|
{
|
||||||
Debug.Log(data);
|
//Debug.Log(data);
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
string uploadLogMainJson = JsonConvert.SerializeObject(uploadLogMains);
|
string uploadLogMainJson = JsonConvert.SerializeObject(uploadLogMains);
|
||||||
WWWForm wWWForm = new WWWForm();
|
WWWForm wWWForm = new WWWForm();
|
||||||
wWWForm.AddField("data", uploadLogMainJson);
|
wWWForm.AddField("data", uploadLogMainJson);
|
||||||
Debug.Log(uploadLogMainJson);
|
//Debug.Log(uploadLogMainJson);
|
||||||
StartCoroutine(PostString(Url_Addpracticelog, wWWForm, data =>
|
StartCoroutine(PostString(Url_Addpracticelog, wWWForm, data =>
|
||||||
{
|
{
|
||||||
Debug.Log(data);
|
Debug.Log(data);
|
||||||
|
|
Loading…
Reference in New Issue