private void onQuitDialogResult(DialogWindow.DialogResult result) { if (result == DialogWindow.DialogResult.Yes) { Application.Quit(); } backButtonDelay = 0; /* * DialogWindow.closeDialog(); * DialogWindow.onResultMethod = null; */ }
public void selectharacterDialogResult(DialogWindow.DialogResult result) { if (selectedCharacter == null) { return; } if (result == DialogWindow.DialogResult.Yes) { PlayerPrefs.SetInt("selected_character", selectedCharacter.characterID); selectedCharacter.playAnimation(selectedCharacter.storeSelectedAnimation); GameGlobals.Instance.audioController.playSound("UICharacterUnlock", false); refreshAllCharacterButtonStates(); // Selecting Character In Game GameGlobals.Instance.controller.setCharacter(selectedCharacter.getPlayerClone()); } }
public void buyCharacterDialogResult(DialogWindow.DialogResult result) { if (selectedCharacter == null) { return; } if (result == DialogWindow.DialogResult.Yes) { // Unlock Character PlayerPrefs.SetInt("character" + selectedCharacter.characterID.ToString() + "_unlocked", 1); // Pay with coins PlayerPrefs.SetInt("totalCoins", PlayerPrefs.GetInt("totalCoins", 0) - selectedCharacter.characterPrice); refreshScoreWindowCoins(); GameGlobals.Instance.achievements.Reset(); GameGlobals.Instance.audioController.playSound("PowerupLetterStep", false); selectedCharacter.unlocked = true; refreshAllCharacterButtonStates(); } }
public void testResult(DialogWindow.DialogResult result) { Debug.Log("DIALOG GAPANDI " + result); }