BloodAndGore/Assets/Scripts/GUI/BackToMainMenuButton.cs

15 lines
353 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Saltosion.OneWeapon.GUI {
public class BackToMainMenuButton : MonoBehaviour {
public int MainMenuScene;
public void BackToMainMenu() {
SceneManager.LoadScene(MainMenuScene);
}
}
}