void SelectObj() { FSMScriptableObject script = Selection.activeObject as FSMScriptableObject; if (script != null) { _scriptableObject = script; _parametersList = new ReorderableList(_scriptableObject.parameters, typeof(FSMParameters)); _parametersList.displayAdd = false; _parametersList.headerHeight = 0; _canvasOffset = _scriptableObject.CurrentGroup.CanvasPos; UpdateNodes(); // startNode = (Node) _scriptableObject.startNode; _currentGroupPath = _scriptableObject.currentGroupPath; } Repaint(); }