예제 #1
0
        // Private methods

        /// <summary>
        /// Enters a new state (if there is one) Does NOT raise the OnTransitioned event.
        /// </summary>
        private void EnterNewStateFromStorage(Type previousStateType, StateConfiguration state)
        {
            _currentState = state;

            //Type currentStateType = null;

            // Are we entering a new state?
            if (_currentState != null)
            {
                //currentStateType = _currentState.StateType;
                _currentState.EnterStateFromStorage();
            }
        }