private async void CancelClicked(object sender, EventArgs e) { ChoiceMade?.Invoke(false); Preferences.Instance.Strategy = NearbyStrategy.Default; if (PopupNavigation.Instance.PopupStack.Any()) { await Rg.Plugins.Popup.Services.PopupNavigation.Instance.PopAsync(); } }
private async void OKClicked(object sender, EventArgs e) { Preferences.Instance.AutoConnect = true; PostOffice.Instance.HasPermission = true; ChoiceMade?.Invoke(true); if (PopupNavigation.Instance.PopupStack.Any()) { await Rg.Plugins.Popup.Services.PopupNavigation.Instance.PopAsync(); } }
public void PressButton() { string message = EventSystem.current.currentSelectedGameObject.transform.GetComponentInChildren <TextMeshProUGUI>().text; ChoiceMade?.Invoke(message); CloseButtons(); foreach (Choice choice in currentDialogue.choice) { if (choice.choiceName == message && choice.dialogue != null) { StartDialogue(choice.dialogue); return; } } EndOfDialogueEvent(); StopDialogue(); }
void OnChoiceClicked(Choice choice) { ChoiceMade?.Invoke(choice); }
public void Choose(Choice choice) { ChoiceMade.Invoke(choice); }
public void Selected(int Index) { ChoiceMade?.Invoke(Index); }