public void OpenCompleteDialog() { var btnHome = new Kwmkade.UI.Dialog.DialogButton.ActionButton("Home", () => { Debug.Log("click ok"); }); Kwmkade.UI.Dialog.DialogButton.ActionButton[] buttons = { btnHome }; dialog.ShowDialog("Complete!", "", buttons, () => { Debug.Log("closed dialog."); }, true); }
public void OpenPauseDialog() { var btnContinue = new Kwmkade.UI.Dialog.DialogButton.ActionButton("Continue", () => { _pauser.Resume(); }); var btnRetry = new Kwmkade.UI.Dialog.DialogButton.ActionButton("Retry", ReloadScecne); var btnHome = new Kwmkade.UI.Dialog.DialogButton.ActionButton("Home", () => { Debug.Log("click ok"); }); Kwmkade.UI.Dialog.DialogButton.ActionButton[] buttons = { btnContinue, btnRetry, btnHome }; dialog.ShowDialog("Pause", "", buttons, () => { Debug.Log("closed dialog."); }, true); }