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