Forest_Client/Forest/Assets/AudienceNetwork/Scenes/BaseScene.cs

24 lines
483 B
C#
Raw Normal View History

2024-06-28 18:47:48 +08:00
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");
}
}