This commit is contained in:
parent
d7e88405ad
commit
646dad2213
|
@ -210,7 +210,8 @@ public class HighPriorityTarget : MonoBehaviour
|
||||||
HP -= 10;
|
HP -= 10;
|
||||||
string nowData = GetSyncDis(Pos);
|
string nowData = GetSyncDis(Pos);
|
||||||
//Debug.Log("发送:"+nowData);
|
//Debug.Log("发送:"+nowData);
|
||||||
_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
|
DeviceManager.Instance.send2roomStr.Enqueue(nowData);
|
||||||
|
//_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -192,7 +192,7 @@ public class UnmannedAerialVehicle : 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);
|
||||||
|
@ -247,7 +247,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
{
|
{
|
||||||
transform.DOKill();
|
transform.DOKill();
|
||||||
attackTarget = target;
|
attackTarget = target;
|
||||||
Debug.Log("开始攻击目标..:" + attackTarget.name);
|
//Debug.Log("开始攻击目标..:" + attackTarget.name);
|
||||||
Vector3 _v3 = attackTarget.position;
|
Vector3 _v3 = attackTarget.position;
|
||||||
transform.DOLookAt(_v3, 0.1f).OnComplete(() =>
|
transform.DOLookAt(_v3, 0.1f).OnComplete(() =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue