public void Update(TState state) { if (!IsEnabled) { return; } CurrentState = state; PreUpdate(CurrentState); runner.Update(this); PostUpdate(CurrentState); }
/// <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); } }