17 lines
319 B
C#
17 lines
319 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
{
|
|
[SerializeField] string sceneName;
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Return))
|
|
{
|
|
SceneManager.LoadScene(sceneName);
|
|
}
|
|
}
|
|
}
|