示例#1
0
        public void Show()
        {
            if (_busy)
            {
                return;
            }
            _busy = true;

            if (_shown)
            {
                return;
            }

            _helper.AfterComplete = () => { _shown = true; AfterShown?.Invoke(); };
            _helper.AfterCanceled = () => { _shown = false; };
            _helper.AfterError    = (e) => { _shown = true; };
            _helper.Preload(true);
        }
示例#2
0
 public void CallAfterShownEvent()
 {
     AfterShown?.Invoke();
 }
示例#3
0
 public void StartShow(AfterShown fn = null)
 {
     gameObject.SetActive(true);
     UseCodeWay();
     fnAfterShown = fn;
 }