コード例 #1
0
    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);
    }
コード例 #2
0
 public FSMDragStateControl(FSMStatesControl MyFSMStatesControl)
 {
     this.MyFSMStatesControl = MyFSMStatesControl;
 }