24 lines
483 B
C#
24 lines
483 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class BaseScene : MonoBehaviour
|
|
{
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Application.platform == RuntimePlatform.Android)
|
|
{
|
|
if (Input.GetKey(KeyCode.Escape))
|
|
{
|
|
Application.Quit();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void LoadSettingsScene()
|
|
{
|
|
SceneManager.LoadScene("SettingsScene");
|
|
}
|
|
}
|