예제 #1
0
        public void Update(TState state)
        {
            if (!IsEnabled)
            {
                return;
            }

            CurrentState = state;
            PreUpdate(CurrentState);
            runner.Update(this);
            PostUpdate(CurrentState);
        }
예제 #2
0
        /// <summary>
        /// Updates the system once.
        /// </summary>
        /// <param name="state">The state to use.</param>
        public void Update(T state)
        {
            if (IsEnabled)
            {
                CurrentState = state;

                PreUpdate(CurrentState);

                _runner.Update(this);

                PostUpdate(CurrentState);
            }
        }