Exemple #1
0
    void WinLevel()
    {
        EndText.text = "Level Won";
        SetNextLevelButton();
        Button.onClick.AddListener(NextLevelAction);
        gameObject.SetActive(true);

        WinSound.StopBackground();
        WinSound.Play();
    }
Exemple #2
0
 public void Update()
 {
     if (endLevel == true)
     {
         BackgroundMusic.StopBackground();
     }
 }