// button functions /// <summary> /// Retry this leve. /// </summary> public void Retry() { if (Time.timeScale != 1f) { Time.timeScale = 1f; } HideUI(); fadingController.FadeToScene(SceneManager.GetActiveScene().name); }
/// <summary> /// Play game - go to selection menu. /// </summary> public void Play() { fadingController.FadeToScene(levelToLoad); }
/// <summary> /// Select the specified levelName. /// </summary> /// <param name="levelName">Level name.</param> public void Select(string levelName) { levelSelectionUI.SetActive(false); fadingController.FadeToScene(levelName); }