public Flashlight()
 {
     currState = states[FlashlightStates.OFF];
 }
 public void SetState(FlashlightStates state)
 {
     currState = states[state];
 }