This commit is contained in:
账号名 2024-01-29 21:50:34 +08:00
parent d7e88405ad
commit 646dad2213
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(() =>
{