Пример #1
0
        public static Promise <IPopupResult> ShowPopup(SignalBus signalBus, IPopupConfig popupConfig)
        {
            try
            {
                OpenPopupSignal openPopupParams = new OpenPopupSignal
                {
                    OnPopupComplete = new Promise <IPopupResult>(),
                    PopupConfig     = popupConfig
                };

                signalBus.TryFire(openPopupParams);

                return(openPopupParams.OnPopupComplete);
            }
            catch (Exception e)
            {
                Debug.LogError(e);
                throw;
            }
        }
 public virtual Promise <IPopupResult> ShowPopup(IPopupConfig popupConfig)
 {
     return(OpenPopupSignal.ShowPopup(SignalBus, popupConfig));
 }