Ejemplo n.º 1
0
        private void ScreenOpen()
        {
            _targetScreen.gameObject.SetActive(true);

            _targetScreen.OnShowStart(_targetScreenData);
            if (_loadingOverlay != null)
            {
                RequestOverlayClose(_loadingOverlay);
                _loadingOverlay = null;
            }

            if (ViewOpened != null)
            {
                ViewOpened(_targetScreen);
            }
        }
Ejemplo n.º 2
0
        private void OverlayOpen(Type screenType, SObject data)
        {
            AbstractView view = _currentOverlays[screenType];

            view.gameObject.SetActive(true);
            view.OnShowStart(data);

            if (_loadingOverlay == screenType)
            {
                RequestView(_loadingOverlayTargetView, _loadingOverlayTargetViewData);
            }

            if (OverlayOpened != null)
            {
                OverlayOpened(view);
            }
        }