using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Audio; public class Menu : MonoBehaviour{ public AudioMixer secondaryChannel; // Start is called before the first frame update void Start(){ AudioManager.instance.Play("Menu"); AudioManager.instance.Stop("Theme"); AudioManager.instance.Stop("Theme2"); AudioManager.instance.Stop("Vela"); secondaryChannel.SetFloat("secondaryVolume", -80); PlayerPrefs.DeleteKey("Casa"); PlayerPrefs.DeleteKey("CheckPoint"); Time.timeScale = 1; } // Update is called once per frame void Update(){ } public void Quit(){ Application.Quit(); } }