public void Update()
        {
            frameNumber++;

            ScriptedInputState nextState;
            if (states.TryGetValue(frameNumber, out nextState))
            {
                currentState = nextState;
            }
        }
        public void Update()
        {
            frameNumber++;

            ScriptedInputState nextState;

            if (states.TryGetValue(frameNumber, out nextState))
            {
                currentState = nextState;
            }
        }