public FSMNodeEditor(FSMGraphEditor root, ENodeType nodeType = ENodeType.Node)
        {
            nodeName = "NODE EMPTY";
            nodeRect = new Rect(100f, 100f, m_WidthRect, m_HeightRect);

            rootGraph       = root;
            this.IsNodeType = nodeType;
            conditionLines  = new List <FSMConditionLineEditor> ();
        }
        public FSMNodeEditor(string name, float x, float y, FSMGraphEditor root, ENodeType nodeType = ENodeType.Node)
        {
            nodeName = name;
            nodeRect = new Rect(x, y, m_WidthRect, m_HeightRect);

            rootGraph       = root;
            this.IsNodeType = nodeType;
            conditionLines  = new List <FSMConditionLineEditor> ();
        }
 static void Init()
 {
     root           = EditorWindow.GetWindow(typeof(FSMGraphEditor)) as FSMGraphEditor;
     nodeList       = new List <FSMNodeEditor>();
     lineList       = new List <FSMConditionLineEditor> ();
     rootNode       = new FSMNodeEditor("Root", 50f, 50f, root, FSMNodeEditor.ENodeType.Root);
     anyState       = new FSMNodeEditor("AnyState", 50f, 300f, root, FSMNodeEditor.ENodeType.AnyNode);
     m_Map          = new Dictionary <string, FSMNodeEditor> ();
     nodeTotalCount = 0;
 }