Compare commits

...

2 Commits

Author SHA1 Message Date
账号名 b1379f43f4 Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane 2024-01-29 21:50:52 +08:00
账号名 646dad2213 1 2024-01-29 21:50:34 +08:00
2 changed files with 4 additions and 3 deletions

View File

@ -210,7 +210,8 @@ public class HighPriorityTarget : MonoBehaviour
HP -= 10;
string nowData = GetSyncDis(Pos);
//Debug.Log("发送:"+nowData);
_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
DeviceManager.Instance.send2roomStr.Enqueue(nowData);
//_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
}
else
{

View File

@ -192,7 +192,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
string uploadLogMainJson = JsonConvert.SerializeObject(uploadLogMains);
WWWForm wWWForm = new WWWForm();
wWWForm.AddField("data", uploadLogMainJson);
Debug.Log(uploadLogMainJson);
//Debug.Log(uploadLogMainJson);
StartCoroutine(PostString(Url_Addpracticelog, wWWForm, data =>
{
Debug.Log(data);
@ -247,7 +247,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
{
transform.DOKill();
attackTarget = target;
Debug.Log("开始攻击目标..:" + attackTarget.name);
//Debug.Log("开始攻击目标..:" + attackTarget.name);
Vector3 _v3 = attackTarget.position;
transform.DOLookAt(_v3, 0.1f).OnComplete(() =>
{