示例#1
0
    // button functions

    /// <summary>
    /// Retry this leve.
    /// </summary>
    public void Retry()
    {
        if (Time.timeScale != 1f)
        {
            Time.timeScale = 1f;
        }

        HideUI();
        fadingController.FadeToScene(SceneManager.GetActiveScene().name);
    }
示例#2
0
 /// <summary>
 /// Play game - go to selection menu.
 /// </summary>
 public void Play()
 {
     fadingController.FadeToScene(levelToLoad);
 }
示例#3
0
 /// <summary>
 /// Select the specified levelName.
 /// </summary>
 /// <param name="levelName">Level name.</param>
 public void Select(string levelName)
 {
     levelSelectionUI.SetActive(false);
     fadingController.FadeToScene(levelName);
 }