示例#1
0
 public override void HandlePower(FlashLight fl)
 {
     fl.LightOn();
     fl.SetState(new On());
 }
示例#2
0
 public override void HandleMode(FlashLight fl)
 {
     fl.Flashing();
     fl.SetState(new Solid());
 }
示例#3
0
 public override void OnEnter(FlashLight fl)
 {
     fl.SetState(new Solid());
 }