Пример #1
0
 /// <summary>
 /// Checks the components.
 /// </summary>
 protected override void CheckComponents()
 {
     if (_drawer == null)
     {
         _drawer = new GameplayControlsDrawer();
     }
 }
Пример #2
0
        /// <summary>
        /// Checks the components.
        /// </summary>
        protected override void CheckComponents()
        {
            if (_sceneDrawer == null)
            {
                _sceneDrawer = new SceneEntityDrawer(PANEL_TITLE);
            }
            if (_favSceneDrawer == null)
            {
                _favSceneDrawer = new SceneEntityDrawer(PANEL_TITLE);
            }
            if (_gameplayDrawer == null)
            {
                _gameplayDrawer = new GameplayControlsDrawer();
            }
            if (_screenshotDrawer == null)
            {
                _screenshotDrawer = new ScreenshotDrawer();
            }
            if (_historyDrawer == null)
            {
                _historyDrawer = new SceneHistoryDrawer();
            }

            if (_database == null)
            {
                _database = SceneDatabaseProvider.GetDatabase(this);
            }
            if (_scrolls == null)
            {
                _scrolls = new ScrollableContainer(PANEL_TITLE, true);
            }
            if (_folders == null)
            {
                _folders = new FolderContainer(PANEL_TITLE, true);
            }
        }