/// <summary> /// Overridden function from MonoBehavior /// </summary> internal void Awake() { CancelInvoke(); loadConfig(); intuitiveNodeGizmosManager = new IntuitiveNodeGizmosManager(options); }
public IntuitiveNodeGizmoHandler(IntuitiveNodeGizmosManager intuitiveManeuvers, ManeuverNode maneuverNode, PreciseNodeOptions options) { this.intuitiveManeuvers = intuitiveManeuvers; this.maneuverNode = maneuverNode; this.options = options; this.progradeChangeOccurred = false; this.radialChangeOccurred = false; this.normalChangeOccurred = false; // store the current value of the maneuver node this.oldDV = new Vector3d(this.maneuverNode.DeltaV.x, this.maneuverNode.DeltaV.y, this.maneuverNode.DeltaV.z); AttachHandleHandlers(); this.maneuverNode.attachedGizmo.OnDelete += this.DeleteHandler; }