public void SetState(FlashlightState flashlightState) { _flashlightState = flashlightState; _flashlightState.OnEnter(this); }
public Flashlight() { _flashlightState = new Off(); }