This commit is contained in:
parent
f12992418b
commit
5db8b045d9
|
@ -159,6 +159,12 @@ public class EquipmentCommon : MonoBehaviour
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void Update()
|
||||
{
|
||||
StartMoveObjectAlongPath();
|
||||
}
|
||||
/// <summary>
|
||||
/// 已有路径
|
||||
/// </summary>
|
||||
|
@ -177,7 +183,7 @@ public class EquipmentCommon : MonoBehaviour
|
|||
Vector3 _positions = positions.Dequeue();
|
||||
UnmannedAerialVehicleManage unmannedAerialVehicleManage = GetComponent<UnmannedAerialVehicleManage>();
|
||||
if (unmannedAerialVehicleManage)
|
||||
StartCoroutine(unmannedAerialVehicleManage.MoveObjectAlongPath(_positions,isMove)); // 启动协程,按规划的路线移动物体
|
||||
StartCoroutine(unmannedAerialVehicleManage.MoveObjectAlongPath(_positions,true)); // 启动协程,按规划的路线移动物体
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue