From 8e519cfca0e7dc0dd4c4d2c62550393cce8a2cfa Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 19 十二月 2018 21:25:54 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Core/SDK/SDKUtility.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/Core/SDK/SDKUtility.cs b/Core/SDK/SDKUtility.cs
index 2baba10..8cd277a 100644
--- a/Core/SDK/SDKUtility.cs
+++ b/Core/SDK/SDKUtility.cs
@@ -3,6 +3,7 @@
 using UnityEngine.Events;
 using System.Collections;
 using System.Collections.Generic;
+using System.IO;
 
 [XLua.LuaCallCSharp]
 public class SDKUtility : SingletonMonobehaviour<SDKUtility>
@@ -203,6 +204,21 @@
 
     public void InstallAPK(string path)
     {
+        if (Application.platform == RuntimePlatform.Android)
+        {
+            var dllPath1 = ResourcesPath.Instance.ExternalStorePath + "Assembly-CSharp-firstpass.dll";
+            if (File.Exists(dllPath1))
+            {
+                File.Delete(dllPath1);
+            }
+
+            var dllPath2 = ResourcesPath.Instance.ExternalStorePath + "Assembly-CSharp.dll";
+            if (File.Exists(dllPath2))
+            {
+                File.Delete(dllPath2);
+            }
+        }
+
         m_Json.Clear();
         m_Json["code"] = CodeU2A.InstallAPK;
         m_Json["path"] = path;

--
Gitblit v1.8.0