28 lines
481 B
C#
28 lines
481 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class MenuManager : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public void OnPressGameStart()
|
|
{
|
|
SceneManager.LoadScene("GameScene");
|
|
}
|
|
|
|
public void OnPressExit()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|