Beispiel #1
0
 public void SetState(PhoneState state)
 {
     state.OnExit(this);
     this.state = state;
     state.OnEnter(this);
 }
Beispiel #2
0
 public Phone()
 {
     state        = Idle.Instance;
     speakerState = Speaker.Instance;
 }