예제 #1
0
 private void Subscribe()
 {
     _subscribesContainer.Subscribe(EventNames.KeyBindingStart, u => MoveTo(typeof(BindingState)));
     _subscribesContainer.Subscribe(EventNames.KeyBindingStop, u => MoveTo(typeof(IdleState)));
     _subscribesContainer.Subscribe(EventNames.KeyPressed, u =>
     {
         CurrentState.Handle(u);
     });
 }
예제 #2
0
 //TODO: save all values on exit
 private void Subscribe()
 {
     _subscribeContainer.Subscribe(EventNames.KeyPressHandled, OnKeyPressHandled);
     _subscribeContainer.Subscribe(EventNames.ToggleClickerState, OnToggleClickerState);
 }