Пример #1
0
 private void OpenOneOption()
 {
     PopupDialog.OpenOneOption("Color Change", "All you can do is click Red. Or press Return. Or, I guess you could close the dialog...",
                               "Red", () => { SetBackgroundColor(Color.red); }
                               );
     PopupDialog.SetCommandForOneOption(PAction.Submit);
 }
Пример #2
0
        private IEnumerator iFadeIn()
        {
            _instructions.SetActive(true);
            ScreenFader.Instance.SetCanvasHidden();
            ScreenFader.Instance.FadeInFromColor(Color.black, 2);
            while (ScreenFader.Instance.IsFading)
            {
                yield return(null);
            }
            PopupDialog.OpenOneOption("Screen Fader", "", "Fade Out", () => { FadeOut(); });

            // Let the dialog be accepted by pressing the Primary key (default is Return)
            PopupDialog.SetCommandForOneOption(PAction.Action0);
        }
Пример #3
0
 private void OpenDialog()
 {
     PopupDialog.OpenOneOption("Pop-Up Dialog", "Click the button to continue", "OK", () => { });
     _pointer.Deactivate();
 }