28 lines
498 B
C#
Executable File
28 lines
498 B
C#
Executable File
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
{
|
|
|
|
public string loadLevel;
|
|
public void PlayGame() {
|
|
Debug.Log("Loading " + loadLevel);
|
|
SceneManager.LoadScene(loadLevel);
|
|
}
|
|
|
|
public void ExitGame() {
|
|
Debug.Log("Exitting..");
|
|
Application.Quit();
|
|
}
|
|
|
|
void Start() {
|
|
Cursor.lockState = CursorLockMode.None;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|