int hash = "ClusterControl".GetHashCode(); //hash used to keep the focus on the current object /// <summary> /// Editing state, changed with buttons /// </summary> void OnEnable() { clusterobject = (WaypointCluster)target; }
/**************************EDITOR FUNCTIONS***********************************/ /** Sets the WaypointCluster object this waypoint pertains to */ public void setParent(WaypointCluster wc) { parent = wc; }
int hash = "ClusterControl".GetHashCode(); //hash used to keep the focus on the current object void OnEnable() { clusterobject = (WaypointCluster)target; plane = new Plane(new Vector3(0, 0, 0), new Vector3(0, 1, 0), new Vector3(1, 0, 0)); }