Пример #1
0
        void Awake()
        {
            // Should be done on landing
            Serivces.Register <IPoolingService>(new GameObjectsPool("Pool"));

            GameServices.Register(new CameraService(Camera.main));
            GameServices.Register(new AsteroidsService(m_GamePlayUIView));
        }
Пример #2
0
        public void ActivateServises()
        {
            // Should be done on landing
            Serivces.Register <IPoolingService>(new GameObjectsPool("Pool"));
            GameServices.Register(new CameraService(mainCamera));
            GameServices.Register(new HealthBarManager(pr_healthBarPrefab));


            GameServices.Register(new PlayerManager(playerPrefab, playerSpawnPoint));
            GameServices.Register(new EnemySpawnerManager(spawnPointsEnemies, enemyPrefabs));
            GameServices.Register(new GameScoreManager(m_GamePlayUIView));
            GameServices.Register(new AudioManager());
            ///   GameServices.Register<AsteroidManager>();
        }