BloodAndGore/Assets/Scripts/GUI/BackToMainMenuButton.cs

15 lines
355 B
C#

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