This commit is contained in:
Gerard Gascón 2025-04-24 17:19:36 +02:00
commit 001bb14f16
951 changed files with 270074 additions and 0 deletions

View file

@ -0,0 +1,30 @@
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();
}
}