少年修仙传客户端代码仓库
client_linchunjie
2018-12-19 8e519cfca0e7dc0dd4c4d2c62550393cce8a2cfa
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;