19 lines
341 B
C#
19 lines
341 B
C#
|
using UnityEngine;
|
||
|
using UnityEngine.SceneManagement;
|
||
|
|
||
|
public class MenuScript : MonoBehaviour
|
||
|
{
|
||
|
public void ChangeScene()
|
||
|
{
|
||
|
SceneManager.LoadSceneAsync("GameScene");
|
||
|
}
|
||
|
|
||
|
public void Quit()
|
||
|
{
|
||
|
#if UNITY_EDITOR
|
||
|
UnityEditor.EditorApplication.isPlaying = false;
|
||
|
#else
|
||
|
Application.Quit();
|
||
|
#endif
|
||
|
}
|
||
|
}
|