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); }); }
//TODO: save all values on exit private void Subscribe() { _subscribeContainer.Subscribe(EventNames.KeyPressHandled, OnKeyPressHandled); _subscribeContainer.Subscribe(EventNames.ToggleClickerState, OnToggleClickerState); }