Example #1
0
    public override void Init(Vector2 position)
    {
        Init(position, new NodeWindow_EnumState(), title: "State");

        stackState = new StackState(StateEnums.GetInitialState());

        foreach (string key in stackState.state.Keys)
        {
            AddInput(stackState.state[key].GetType(), key);
        }
    }
    public override void Init(Vector2 position)
    {
        Init(position, new NodeWindow_EnumStateModifier(), title: "Modifier");

        AddInput(typeof(bool), "trigger");
        AddOutput(typeof(void), "detector");

        modifierStackState = new StackState(StateEnums.GetInitialState());

        foreach (string key in modifierStackState.state.Keys)
        {
            AddOutput(modifierStackState.state[key].GetType(), key);
        }
    }