// When the node editor is selected, should be used for initialization. void OnEnable() { currentWaypoints = (WaypointNodeParent)target; }