/// <summary>
 /// Draws the line for the connections
 /// </summary>
 /// <param name="e"></param>
 private void DrawConnectionLine(Event e)
 {
     if (transitionStartState != null && transitionEndState == null && creatingTransition)
     {
         EditorDraw.DrawLine(transitionStartState.NodeState.Rectangle.center, e.mousePosition, Color.white, 3);
         GUI.changed = true;
     }
 }
        /// <summary>
        /// Draws the transition to the screen
        /// </summary>
        /// <param name="startState"></param>
        /// <param name="endState"></param>
        public void DrawTransition(Vector2 startState, Vector2 endState)
        {
            if (twoWayTransition)
            {
                startState = startState + offsetVector;
                endState   = endState + offsetVector;
            }

            Vector2 trianglePosition = clickableArea.center;

            if (selected)
            {
                Color highlightColor = new Color(0.3f, 0.3f, 1.0f, 0.3f);
                EditorDraw.DrawLineInEditorBounds(startState, endState, highlightColor, 8, StateMachineEditor.EditorWidth, StateMachineEditor.EditorHeight);
                EditorDraw.DrawTriangle(trianglePosition, rotation, highlightColor, 6);
            }

            EditorDraw.DrawLineInEditorBounds(startState, endState, Color.white, 5, StateMachineEditor.EditorWidth, StateMachineEditor.EditorHeight);
            EditorDraw.DrawTriangle(trianglePosition, rotation, Color.white, 5);
        }