fgm24/Assets/Scripts/GameOverMainMenuReturnerBut...

13 lines
391 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameOverMainMenuReturnerButtonScriptForLoadingTheMainMenuSceneOnceAPlayerHasDiedAndHasThenPressedTheMainMenuButtonOnTheGameOverScreen : MonoBehaviour
{
public void r() {
AudioManager.Instance.StopAllAudio();
SceneManager.LoadScene(0);
}
}