Ejemplo n.º 1
0
 private void OnDisable()
 {
     if (keyboardRegistration != null)
     {
         keyboardRegistration.Dispose();
         keyboardRegistration = null;
     }
 }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     keyboardRegistration = KeyboardManager.Instance.RegisterKeyEvent(
         new KeyboardManager.KeyCodeEventPair(KeyCode.Tab, KeyboardManager.KeyEvent.KeyUp),
         OnKeyUpCallbak);
 }