From ef3e3a8321fbb0732debf7df3f0037cdeea36edf Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Fri, 3 Dec 2021 18:21:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=89=88=E6=9C=AC=E5=8F=8D=E8=80=8C?= =?UTF-8?q?=E5=BC=B9=E6=9B=B4=E6=96=B0=E7=9A=84bug=EF=BC=9B=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=89=8B=E6=9C=BA=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=B1=E4=BA=8E=E7=A8=8B=E5=BA=8F=E9=80=80=E5=87=BA=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=AE=89=E8=A3=85=E5=8C=85=E6=8D=9F=E5=9D=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/AndroidUpdate.cs | 2 +- Assets/Scripts/Utils/Utils.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/AndroidUpdate.cs b/Assets/AndroidUpdate.cs index 94c3c9bb..87f337a5 100644 --- a/Assets/AndroidUpdate.cs +++ b/Assets/AndroidUpdate.cs @@ -124,7 +124,7 @@ public class AndroidUpdate : PFUIPanel var activity = jc.GetStatic("currentActivity"); //Debug.Log("打开apk"+ "file://" + path); activity.Call("OpenApk", path); - Application.Quit(); + //Application.Quit(); #endif } } diff --git a/Assets/Scripts/Utils/Utils.cs b/Assets/Scripts/Utils/Utils.cs index 2ffb8dae..62e8e6a4 100644 --- a/Assets/Scripts/Utils/Utils.cs +++ b/Assets/Scripts/Utils/Utils.cs @@ -234,6 +234,10 @@ namespace Assets.Scripts { return true; } + else if (ai > bi) + { + return false; + } } return false; }