Ejemplo n.º 1
0
        private void Add(IMutableTransitionModel <S, E, C> model, IAction <S, E, C> action)
        {
            switch (m_Mode)
            {
            case Mode.Entry:
                model.AddEntryAction(m_State, action);
                break;

            case Mode.Exit:
                model.AddExitAction(m_State, action);
                break;

            default:
                throw new Exception("Invalid mode = " + m_Mode);
                break;
            }
        }