|
|
@@ -0,0 +1,22 @@
|
|
|
+using System.Collections;
|
|
|
+using System.Collections.Generic;
|
|
|
+using UnityEngine;
|
|
|
+using UnityEngine.SceneManagement;
|
|
|
+
|
|
|
+public class StandaloneAPI
|
|
|
+{
|
|
|
+ public static void ForceBackHome()
|
|
|
+ {
|
|
|
+ SceneManager.LoadScene("Home", LoadSceneMode.Single);
|
|
|
+ if (PersistenHandler.ins)
|
|
|
+ {
|
|
|
+ var views = PersistenHandler.ins.menuBackCtr.views;
|
|
|
+ while (views.Count > 0)
|
|
|
+ {
|
|
|
+ var view = views[views.Count - 1];
|
|
|
+ views.RemoveAt(views.Count - 1);
|
|
|
+ view.OnMenuBack();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|