private void OnFinishLevel() { _topPanel.SetActive(false); _pausePanel.SetActive(false); _controlsPanel.SetActive(false); _endLevelPanel.SetActive(true); _sceneController.FinishLevel(); _endLevelCoinsCounter.text = "x" + _sceneController.LevelCoins.ToString(); _endLevelMaxCoinsCounter.text = "x" + _sceneController.GetMaxLevelCoins().ToString(); }
private void OnFinishLevel() { _topPanel.SetActive(false); _pausePanel.SetActive(false); _controlsPanel.SetActive(false); _endLevelPanel.SetActive(true); _sceneController.FinishLevel(); _endLevelHeightCounter.text = _sceneController.CurrentHeight.ToString(); _endLevelPlatformCounter.text = " : " + _sceneController.CurrentPlatforms.ToString(); _endLevelMaxHeightCounter.text = _sceneController.GetMaxHeight().ToString(); _endLevelMaxPlatformCounter.text = " : " + _sceneController.GetMaxPlatforms().ToString(); _endLevelAnimator.SetTrigger("OnLevelEnd"); }