public virtual void Execute(IGameStateCommand command) { command.Execute(_gameStateManager.GameState); if (_stateUpdated != null) { _stateUpdated(_gameStateManager.GameState); } }
public virtual void Execute(IGameStateCommand command) { command.Execute(_gameStateManager.GameState); _stateUpdated.OnNext(_gameStateManager.GameState); }
public virtual void Execute(IGameStateCommand command) { command.Execute(_gameStateManager.GameState); _StateUpdated?.Invoke(_gameStateManager.GameState); }