void StartLevel() { _mainMenu.SetActive(false); _gameOverMenu.SetActive(false); _buttons[Constants.restartButton].gameObject.SetActive(false); _buttons[Constants.backButton].gameObject.SetActive(false); _currentScore.gameObject.SetActive(true); _currentScore.SetText(Constants.currentScoreText + _controlManager.CurrentScore); _buttons[Constants.menuButton].gameObject.SetActive(true); _updateManager.CustomStart(); _controlManager.Initialization(); _platformManager.StartGenerate(); }
void StartLevel() { _mainMenu.SetActive(false); _healthBar.gameObject.SetActive(true); _experiencebar.gameObject.SetActive(true); _coinPanel.gameObject.SetActive(true); _buttons[Constants.pauseButton].gameObject.SetActive(true); _poolManager.LoadLevel(); _poolManager.InstantiateEntities(); _player = _objectStorage.Units[UnitType.Player.ToString()].First(); _healthBar.minValue = minimumHealth = 0; _healthBar.maxValue = maximumHealth = _player.Health; lowHealth = _player.Behaviour.CurrentHealth * 0.33f; highHealth = _player.Behaviour.CurrentHealth * 0.66f; _experiencebar.minValue = Constants.experiencebarMinValue; _experiencebar.maxValue = Constants.experiencebarMaxValue; CreateBulletImage(); _buttons[Constants.machineButton].gameObject.SetActive(_player.Behaviour.IsMachineAvailable); _updateManager.CustomStart(); }