25 lines
462 B
C#
25 lines
462 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class ButtonAction : MonoBehaviour
|
|
{
|
|
public void LoadScene(String sceneName)
|
|
{
|
|
SceneManager.LoadScene(sceneName);
|
|
}
|
|
|
|
public void OpenOption()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void Quit()
|
|
{
|
|
#if UNITY_EDITOR
|
|
UnityEditor.EditorApplication.isPlaying = false;
|
|
#endif
|
|
Application.Quit();
|
|
}
|
|
}
|