using UnityEngine; using System.Collections; public class Test : MonoBehaviour { public iTweenPath path; public Vector3[] paths; void Start() { paths = new Vector3[path.nodeCount]; for (int i = 0; i < path.nodeCount; i++) { paths[i] = path.nodes[i]; } iTween.MoveTo(gameObject, iTween.Hash("path", paths, "speed", 5f, "easeType", iTween.EaseType.linear)); } void OnGUI() { } void Update() { } }