修改细节
This commit is contained in:
1 parent
d8adb8a5b8
commit
3c540dece4
9 files changed
+1028
-990
No files matched your search
@@ -190,7 +190,23 @@ namespace Assets.Scripts
|
||||
}
|
||||
loading.GetComponent<LoadingPf>().Show();
|
||||
}
|
||||
|
||||
public static bool isUpdate(string currentVersion,string realVersion)
|
||||
{
|
||||
var a = currentVersion.Split('.');
|
||||
var b = realVersion.Split('.');
|
||||
if (a.Length != 3 || b.Length != 3) return false;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
var f1 = int.TryParse(a[i], out int ai);
|
||||
var f2 = int.TryParse(b[i], out int bi);
|
||||
if (!f1 || !f2) return false;
|
||||
if (ai < bi)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static void CallAndroidMethod(string methodName,params object[] args)
|
||||
{
|
||||
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
|
||||
Reference in new issue
Block a user