Beispiel #1
0
 private void RefreshAState()
 {
     //handles refreshing the accept state area
     lstbxAState.Items.Clear();
     foreach (int AState in EchAStateList)
     {
         string tempstring = AState.ToString();
         lstbxAState.Items.Add(tempstring);
     }
 }
Beispiel #2
0
    private void DrawState(AState state, bool isCurrent)
    {
        // draw state name
        string name = (isCurrent ? "▶" : "") + state.ToString();

        EditorGUILayout.LabelField(name);

        // draw substates
        if (state.FSM.HasStates())
        {
            EditorGUI.indentLevel++;
            DrawStateMachine(state.FSM);
            EditorGUI.indentLevel--;
        }
    }