protected override void OnScreenClose(ConfirmationContext context) { GameManager.Instance.Game.Paused = false; if (context.Result) { SceneManager.LoadScene("Scenes/Main Menu", LoadSceneMode.Single); } }
public void No() { if (Context == null) { Context = new ConfirmationContext(); } Context.Result = false; CloseDialog(); }
public void Yes() { if (Context == null) { Context = new ConfirmationContext(); } Context.Result = true; CloseDialog(); }
protected override void OnScreenOpen(ConfirmationContext context) { GameManager.Instance.Game.Paused = true; }