/// <summary> /// Start a new path, and go into Add mode to continue adding more nodes /// until cancelled. Assumes /// </summary> /// <param name="pos"></param> /// <param name="objColorIndex"></param> public void NewPath(Vector3 pos, int objColorIndex) { fromNode = WayPoint.CreateNewNode(null, objColorIndex, pos); mode = Mode.Add; Foley.PlayMakePath(); Changed(); }
/// <summary> /// Start a new path, and go into Add mode to continue adding more nodes /// until cancelled. Assumes /// </summary> /// <param name="pos"></param> /// <param name="objColorIndex"></param> public void NewPath(Vector3 pos, int objColorIndex) { fromNode = WayPoint.CreateNewNode(null, objColorIndex, pos); //in touch mode, also auto-select newly created nodes node = fromNode; mode = Mode.Add; Foley.PlayMakePath(); Changed(); }