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();
     }
 }
Example #3
0
        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();
        }
Example #4
0
 void OnChoiceClicked(Choice choice)
 {
     ChoiceMade?.Invoke(choice);
 }
Example #5
0
 public void Choose(Choice choice)
 {
     ChoiceMade.Invoke(choice);
 }
Example #6
0
 public void Selected(int Index)
 {
     ChoiceMade?.Invoke(Index);
 }