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(); } }
public void OnConfirmClicked() { _context.Confirm(); Teardown(); }
public void OnOKClicked() { _context.Confirm(); gameObject.SetActive(false); }