void WinLevel() { EndText.text = "Level Won"; SetNextLevelButton(); Button.onClick.AddListener(NextLevelAction); gameObject.SetActive(true); WinSound.StopBackground(); WinSound.Play(); }
public void Update() { if (endLevel == true) { BackgroundMusic.StopBackground(); } }