public void ChangeState(ShipStates state) { if (_state != null) { _state.Stop(); } _state = _stateFactory.CreateState(state); _state.Start(); }
public void ChangeState(ShipStates state) { if (_state != null) { _state.Stop(); } _state = _stateFactory.CreateState(state); _state.Start(); }