private void Awake() { _sceneCreator = GetComponent <SceneCreator>(); _spawnController = GetComponent <SpawnController>(); _blocksMovementController = GetComponent <SingleBlocksMovementController>(); _scoreController = GetComponent <ScoreController>(); _gameField = GetComponent <GameField>(); _sceneCreator.BuildScene(Row, Column); _spawnController.CreateSpawnPoints(_sceneCreator.CreateSpawnPoints(Row, Column), Column, Row); _spawnController.CreatePoolOfSingleBlocks(); }
private void Awake() { _sceneCreator = GetComponent <SceneCreator>(); _spawnController = GetComponent <SpawnController>(); _blocksMovementController = GetComponent <SingleBlocksMovementController>(); _scoreController = GetComponent <ScoreController>(); _gameField = GetComponent <GameField>(); _balanceController = new BalanceController(); //настройка BalanceController'а и стартового баланса _balanceController.GameController = this; _balanceController.CurrentBalancePreset = CurrentBalancePreset; _balanceController.SetCorrectBalance(0); _scoreController.NumForBalanceChecking = CurrentBalancePreset.DifferenceBetweenLvls + 1; SetCorrectBalance(); //настройка сцены и SpawnController'а _sceneCreator.BuildScene(Row, Column); _spawnController.CreateSpawnPoints(_sceneCreator.CreateSpawnPoints(Row, Column), Column, Row); _spawnController.GlobalMaxHp = CurrentBalancePreset.GlobalMaxHp; _spawnController.CreatePoolOfSingleBlocks(); }