Esempio n. 1
0
    private IEnumerator QuitConfirmationFlowRoutine(ConfirmationContext doesUserWantToQuit)
    {
        var menuManager = ManagerLocator.TryGet <MenuUIManager>();
        var quitConfirm = new ConfirmationContext();

        menuManager.ShowConfirmPopup("Back to main menu?", quitConfirm);

        while (!quitConfirm.IsFinished)
        {
            yield return(null);
        }

        if (quitConfirm.IsConfirmed)
        {
            gameObject.SetActive(false);
            doesUserWantToQuit.Confirm();
        }
    }
Esempio n. 2
0
 public void OnConfirmClicked()
 {
     _context.Confirm();
     Teardown();
 }
Esempio n. 3
0
 public void OnOKClicked()
 {
     _context.Confirm();
     gameObject.SetActive(false);
 }