Selaa lähdekoodia

关闭IOS套壳

lvjincheng 3 vuotta sitten
vanhempi
sitoutus
cfe11e4a48
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      Assets/BowArrow/Scripts/CommonConfig.cs
  2. 1 1
      Assets/BowArrow/Scripts/Entry.cs

+ 1 - 0
Assets/BowArrow/Scripts/CommonConfig.cs

@@ -14,6 +14,7 @@ public class CommonConfig
     {
         get => AppLanguages[Array.IndexOf(AppNames, Application.productName)];
     }
+    public static bool iosTaoKe = false; //IOS套壳开关
     public static bool ReleaseVersion2 = true;
     /*
         特定版本功能

+ 1 - 1
Assets/BowArrow/Scripts/Entry.cs

@@ -11,7 +11,7 @@ public class Entry : MonoBehaviour
     void Awake()
     {
         #if UNITY_IOS
-        if (PlayerPrefs.GetInt("CanGoToApp", 0) == 0)
+        if (CommonConfig.iosTaoKe && PlayerPrefs.GetInt("CanGoToApp", 0) == 0)
         {
             Destroy(gameObject);
             SceneManager.LoadScene("HeartRateBand");