static void ParameterizeCPs() { PathLineDrawerWRP PLDS_H; PLDS_H = (PathLineDrawerWRP)Selection.activeGameObject.GetComponent("PathLineDrawerWRP"); PLDS_H.SetCPValues(); }
static void ParameterizeCPs() { //set the checkpoints values for the PathLineDrawer.js script //remove this code if you are using C# PathLineDrawer PLDS_H; PLDS_H = (PathLineDrawer)Selection.activeGameObject.GetComponent("PathLineDrawer"); PLDS_H.SetCPValues(); //set the checkpoints values for the PathLineDrawer.cs script //remove this code if you are using javacript PathLineDrawerCS pathLineDrawerCS; pathLineDrawerCS = (PathLineDrawerCS)Selection.activeGameObject.GetComponent(typeof(PathLineDrawerCS)); pathLineDrawerCS.SetCPValues(); } //end of parameterize CPs function