Ejemplo n.º 1
0
        public void Tick()
        {
            Transition transition = currentState?.VerifyTransitions();

            if (transition != null)
            {
                transition.Fire();
                ChangeState(transition.nextState);
            }
            else
            {
                currentState?.Stay();
            }
        }