public void SetPathNode(int index, Vector3 value) { Utility_Path path = Utility_Path.GetPath(pathName); path.Nodes[index] = value; SetPath(path); }
/////////////////////////////////////////////////////////////////////////// // // Inherited from MonoBehaviour // protected void Start() { Utility_Path path = Utility_Path.GetPath(pathName); if (this.lerpUpVector) { this.startUpVector = this.upVector; } if (this.pathName != null) { this.lastUpdateTime = Time.time; SetPath(path); if (playOnStart) { if (startDelay == 0) { StartMoving(); } else { Invoke("StartMoving", startDelay); } UpdatePosition(); } if (!playOnStart && setValueOnStart) { UpdatePosition(); } } else { Debug.Log("No Path Found"); } }