summaryrefslogtreecommitdiff
path: root/GameCode/DemoQuitSwitch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GameCode/DemoQuitSwitch.cs')
-rw-r--r--GameCode/DemoQuitSwitch.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/GameCode/DemoQuitSwitch.cs b/GameCode/DemoQuitSwitch.cs
new file mode 100644
index 0000000..5f1f586
--- /dev/null
+++ b/GameCode/DemoQuitSwitch.cs
@@ -0,0 +1,11 @@
+using UnityEngine;
+
+public class DemoQuitSwitch : MonoBehaviour
+{
+ public UIFrame demoFrame;
+
+ public void Trigger()
+ {
+ UIFrameManager.instance.QuitToDesktop();
+ }
+}