This commit is contained in:
账号名 2023-11-22 20:54:38 +08:00
parent cc4c877559
commit af124fe51d
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ public class EquipmentCommon : MonoBehaviour
switch (data[0])
{
case "DronePosition"://无人机位置信息传递
Vector3 pos = new Vector3(float.Parse(data[1]), float.Parse(data[2]), float.Parse(data[3]));
Vector3 rot = new Vector3(float.Parse(data[4]), float.Parse(data[5]), float.Parse(data[6]));
Vector3 pos = new Vector3(float.Parse(data[2]), float.Parse(data[3]), float.Parse(data[4]));
Vector3 rot = new Vector3(float.Parse(data[5]), float.Parse(data[6]), float.Parse(data[7]));
transform.position = pos;
transform.eulerAngles = rot;
break;