private void DrawStates()
 {
     foreach (MotionMatchingNode node in selectedLayer.nodes)
     {
         node.Draw(
             selectedLayer.startStateIndex == node.stateIndex && node.nodeType != MotionMatchingNodeType.Portal,
             IsNodeSelected(node),
             node.stateIndex >= 0 && node.stateIndex < selectedLayer.states.Count ? selectedLayer.states[node.stateIndex].GetName() : "",
             GUIResources.SelectedNodeStyle(),
             GUIResources.StartNodeStyle(),
             GUIResources.NormalNodeStyle(),
             GUIResources.PortalNodeStyle(),
             GUIResources.ContactNodeStyle(),
             GUIResources.InputPointStyle(),
             GUIResources.OutputPointStyle(),
             GUIResources.NodeTextStyle()
             );
     }
 }