This commit is contained in:
parent
cc4c877559
commit
af124fe51d
|
@ -197,8 +197,8 @@ public class EquipmentCommon : MonoBehaviour
|
||||||
switch (data[0])
|
switch (data[0])
|
||||||
{
|
{
|
||||||
case "DronePosition"://无人机位置信息传递
|
case "DronePosition"://无人机位置信息传递
|
||||||
Vector3 pos = new Vector3(float.Parse(data[1]), float.Parse(data[2]), float.Parse(data[3]));
|
Vector3 pos = new Vector3(float.Parse(data[2]), float.Parse(data[3]), float.Parse(data[4]));
|
||||||
Vector3 rot = new Vector3(float.Parse(data[4]), float.Parse(data[5]), float.Parse(data[6]));
|
Vector3 rot = new Vector3(float.Parse(data[5]), float.Parse(data[6]), float.Parse(data[7]));
|
||||||
transform.position = pos;
|
transform.position = pos;
|
||||||
transform.eulerAngles = rot;
|
transform.eulerAngles = rot;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue