Example #1
0
 public void SetState(FlashlightState s)
 {
     _currentState = s;
 }
Example #2
0
 public Flashlight()
 {
     _currentState = new FlashlightStateOff();
 }
Example #3
0
 public Flashlight()
 {
     _currentState = new FlashlightStateOff();
     _currentMode  = new OnSolid();
 }