public void OnButton(KeyCode button, ButtonState state) { InputListener l = GetStackTop(); if (l != null) { try { l.OnButton(button, state); } catch (Exception ex) { log.Error(ex); } } }