Exemplo n.º 1
0
        protected void ForceRetry(string body = ErrorBody.NetworkFailForceRetry)
        {
            var dialog =
                new SingleDialogContents(body, () => NetworkManager.Instance.Access(this))
            {
                HeaderText = ErrorHeader.NetworkError
            };

            TopMostCanvas.Instance.ShowDialog(dialog);
        }
Exemplo n.º 2
0
        public SingleDialog ShowDialog(SingleDialogContents contents)
        {
            if (singleDialog == null)
            {
                UnityConsole.Log("[singleDialog] is empty!!");
                return(null);
            }
            var dialog = ShowWindowWithFade(singleDialog.gameObject, contents.AnimationTime).GetComponent <SingleDialog>();

            dialog.SetContents(contents);
            return(dialog);
        }