public void Tick(float d) { if (GameInputManager.CurrentInput.MenuExitD()) { StartMenuEscapePressedEvent.Get().OnStartMenuEscapePressed(); } }
private void Exit() { StartMenuEscapePressedEvent.Get().UnRegisterOnStartMenuEscapePressedEventAction(this.Exit); this.ControlsWindowGameObject.Hide(); ControlsWindowExitedEvent.Get().OnControlsWindowExited(); }
/// <summary> /// It registers to <see cref="StartMenuEscapePressedEvent"/> to exit the window <see cref="Exit"/> /// </summary> public void Show() { StartMenuEscapePressedEvent.Get().RegisterOnStartMenuEscapePressedEventAction(this.Exit); this.ControlsWindowGameObject.Show(); }