Compare commits
No commits in common. "4752ae86cf919e901c2a2ac537e3259141857929" and "991f068eb3d28159cd825c171af52f0d4c8b1547" have entirely different histories.
4752ae86cf
...
991f068eb3
|
|
@ -337,13 +337,6 @@ public class VerCheck : MonoBehaviour
|
|||
}
|
||||
string copyVersionPath = Path.Combine(Application.streamingAssetsPath, "version.txt");
|
||||
|
||||
#if UNITY_IPHONE
|
||||
if (File.Exists(copyVersionPath))
|
||||
{
|
||||
string copyVersionString = File.ReadAllText(copyVersionPath).Trim();
|
||||
}
|
||||
#endif
|
||||
#if UNITY_ANDROID
|
||||
UnityWebRequest copyRequest = UnityWebRequest.Get(copyVersionPath);
|
||||
yield return copyRequest.SendWebRequest();
|
||||
|
||||
|
|
@ -356,22 +349,13 @@ public class VerCheck : MonoBehaviour
|
|||
});
|
||||
yield break;
|
||||
}
|
||||
|
||||
string copyVersionString = copyRequest.downloadHandler.text.Trim();
|
||||
#endif
|
||||
bool isSame = copyVersionString.Equals(server_version.ToString());
|
||||
if (isSame)
|
||||
{
|
||||
viewBtn_showWait.title = "正在解压资源...";
|
||||
string copyZipPath = Path.Combine(Application.streamingAssetsPath, "Pack.byte");
|
||||
|
||||
#if UNITY_IPHONE
|
||||
if (File.Exists(copyZipPath))
|
||||
{
|
||||
byte[] zipData = File.ReadAllBytes(copyZipPath);
|
||||
}
|
||||
#endif
|
||||
#if UNITY_ANDROID
|
||||
UnityWebRequest copyZipRequest = UnityWebRequest.Get(copyZipPath);
|
||||
yield return copyZipRequest.SendWebRequest();
|
||||
|
||||
|
|
@ -385,7 +369,6 @@ public class VerCheck : MonoBehaviour
|
|||
}
|
||||
|
||||
byte[] zipData = copyZipRequest.downloadHandler.data;
|
||||
#endif
|
||||
string zipString = Path.Combine(Application.persistentDataPath, "Pack.byte");
|
||||
File.WriteAllBytes(zipString, zipData);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue