public void Start() { this.title = "Xtudio 16 FSM Editor"; FSMState [] states = MyFSM.GetComponentsInChildren <FSMState>(); EditorStates = new FSMEditorState[states.Length]; EditorStatesIndex = new Dictionary <string, FSMEditorState>(); int id = 0; foreach (var state in states) { var editorState = new FSMEditorState(state, id); EditorStates[id] = editorState; EditorStatesIndex.Add(state.StateName, editorState); id++; } FSMStatesControl = new FSMStatesControl(this); FSMCreateStateControl = new FSMCreateStateControl(this); }
public FSMDragStateControl(FSMStatesControl MyFSMStatesControl) { this.MyFSMStatesControl = MyFSMStatesControl; }