diff options
author | nirav <nirav@airmail.cc> | 2020-12-12 07:18:36 +0000 |
---|---|---|
committer | nirav <nirav@airmail.cc> | 2020-12-12 07:18:36 +0000 |
commit | 115f77bda0246a00f6e17469685c67746bdbd29d (patch) | |
tree | 4bbea1e59109bb1d1fddc71736f89289bab03073 /Assets/SampleUI/Scripts/ApplicationManager.cs | |
download | 01-115f77bda0246a00f6e17469685c67746bdbd29d.tar.gz 01-115f77bda0246a00f6e17469685c67746bdbd29d.zip |
Diffstat (limited to 'Assets/SampleUI/Scripts/ApplicationManager.cs')
-rwxr-xr-x | Assets/SampleUI/Scripts/ApplicationManager.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Assets/SampleUI/Scripts/ApplicationManager.cs b/Assets/SampleUI/Scripts/ApplicationManager.cs new file mode 100755 index 0000000..a8f868a --- /dev/null +++ b/Assets/SampleUI/Scripts/ApplicationManager.cs @@ -0,0 +1,20 @@ +using UnityEngine; +using System.Collections; +using UnityEngine.SceneManagement; + +public class ApplicationManager : MonoBehaviour { + + public void Quit () + { + #if UNITY_EDITOR + UnityEditor.EditorApplication.isPlaying = false; + #else + Application.Quit(); + #endif + } + + public void LoadLevelnt (int scene) + { + SceneManager.LoadScene(scene,0); + } +} |