Пример #1
0
        public LevelUI(AssetLoader assetLoader, UiSystem uiSystem, ILevelUIListener listener)
        {
            _uiSystem  = uiSystem;
            _listener  = listener;
            _resources = assetLoader.Load <LevelUIResources>("Assets/Content/Level/LevelUIResources.asset");

            _pausePanel          = _uiSystem.Instantiate(_resources.PausePanel, UILayer.Background, true);
            _pausePanel.OnCLick += ShowPauseDialog;
        }