private void ConfirmSkipReceivedHandler(bool status) { _uiManager.GetPopup <QuestionPopup>().ConfirmationReceived -= ConfirmSkipReceivedHandler; if (status) { _gameplayManager.EndGame(Enumerators.EndGameType.CANCEL); GameClient.Get <IMatchManager>().FinishMatch(Enumerators.AppState.DECK_SELECTION); } GameClient.Get <IAppStateManager>().SetPausingApp(false); }
public void BackButtonOnClickHandler() { Action[] actions = new Action[2]; actions[0] = () => { _uiManager.HidePopup <YourTurnPopup>(); _gameplayManager.EndGame(Enumerators.EndGameType.CANCEL); GameClient.Get <IMatchManager>().FinishMatch(Enumerators.AppState.MAIN_MENU); _soundManager.StopPlaying(Enumerators.SoundType.TUTORIAL); _soundManager.CrossfaidSound(Enumerators.SoundType.BACKGROUND, null, true); }; actions[1] = () => { }; _uiManager.DrawPopup <ConfirmationPopup>(actions); _soundManager.PlaySound(Enumerators.SoundType.CLICK, Constants.SfxSoundVolume, false, false, true); }