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