public void Initialize(InvalidationManagerClient component) { if (_initialized) { return; } _initialized = true; //Debug.Log("DialogCloseOnEsc init"); _dialog = (Dialog)component; _dialog.AddEventListener(KeyboardEvent.KEY_UP, KeyUpHandler, Phases); }