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)); }
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>(); }