Пример #1
0
 /// <summary>
 /// 初始化默认管理器
 /// </summary>
 public void InitDefaultManagers()
 {
     _timerManager = new TimerManager();
     AddManager(_timerManager);
     _stageManager = new StageManager();
     AddManager(_stageManager);
     _pathManager = new PathManager();
     AddManager(_pathManager);
     _logManager = new LogManager();
     AddManager(_logManager);
     _langManager = new LangManager();
     AddManager(_langManager);
     _socketManager = new SocketManager();
     AddManager(_socketManager);
     _tableManager = new TableManager();
     AddManager(_tableManager);
     _objectPoolManager = new ObjectPoolManager();
     AddManager(_objectPoolManager);
     _fileManager = new FileManager();
     AddManager(_fileManager);
     _resourceManager = new ResourceManager();
     AddManager(_resourceManager);
     _assetManager = new AssetManager();
     AddManager(_assetManager);
     _audioManager = new AudioManager();
     AddManager(_audioManager);
     _sceneManager = new ScenesManager();
     AddManager(_sceneManager);
     _touchManager = new TouchManager();
     AddManager(_touchManager);
     _platformManager = new PlatformManager();
     AddManager(_platformManager);
 }
Пример #2
0
        public void Init()
        {
            _uiManager       = GameClient.Get <IUIManager>();
            _sceneManager    = GameClient.Get <IScenesManager>();
            _appStateManager = GameClient.Get <IAppStateManager>();
            _gameplayManager = GameClient.Get <IGameplayManager>();
            _tutorialManager = GameClient.Get <ITutorialManager>();

            _sceneManager.SceneForAppStateWasLoadedEvent += SceneForAppStateWasLoadedEventHandler;
        }
        public void Init()
        {
            _loadObjectsManager = GameClient.Get <ILoadObjectsManager>();
            _uiManager          = GameClient.Get <IUIManager>();
            _sceneManager       = GameClient.Get <IScenesManager>();

            _backgroundSprites = GameClient.Get <ILoadObjectsManager>().GetObjectsByPath <Sprite>(new string[] {
                "Images/UI/Backgrounds/Loading/loading_screen_bg_air",
                "Images/UI/Backgrounds/Loading/loading_screen_bg_earth",
                "Images/UI/Backgrounds/Loading/loading_screen_bg_fire",
                "Images/UI/Backgrounds/Loading/loading_screen_bg_life",
                "Images/UI/Backgrounds/Loading/loading_screen_bg_toxic",
                "Images/UI/Backgrounds/Loading/loading_screen_bg_water"
            });
        }