예제 #1
0
        private IEnumerator ShowSpinnerForDuration()
        {
            // Create spinner dialog
            var spinner = AGProgressDialog.CreateSpinnerDialog("Spinner", "Call Dismiss() to cancel", AGDialogTheme.Dark);

            spinner.Show();
            // Spin for some time (do important work)
            yield return(new WaitForSeconds(3.0f));

            // Dismiss spinner after all the background work is done
            spinner.Dismiss();
        }
        public ProgressDialogSpinner(string title, string message)
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            _progressSpinner = AGProgressDialog.CreateSpinnerDialog(title, message, AGDialogTheme.Dark);
#endif
        }
        //---------------------------------------------------------------------
        // Public
        //---------------------------------------------------------------------

        public ProgressDialogSpinner()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            _progressSpinner = AGProgressDialog.CreateSpinnerDialog("", "", AGDialogTheme.Default);
#endif
        }