public void HandlebackButtonPress() { if (!_controllerDialog.Visible) { if (!Paused || (_tutorialRunner.DisplayingHelp && !_pauseDialog.Active)) { if (SceneIsDeactivating) { Profile.PauseOnSceneActivation = true; } else { EnablePause(); } } else if (_pauseDialog.Active) { _pauseDialog.Cancel(); } } else if (_inputProcessor.IsAvailable) { UnpauseIfNotDisplayingTutorialStep(); } }
protected override void HandleBackButtonPress() { if ((!AttemptToPauseGame()) && (_pauseDialog.Active)) { _pauseDialog.Cancel(); } else if (_tutorialDialog.Active) { _tutorialDialog.Cancel(); } }