lvjincheng před 2 roky
rodič
revize
ce601d034b

+ 0 - 8
Assets/StreamingAssets.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 0ae72fa921215474a95f97323612a882
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 1
Assets/StreamingAssets/build_info

@@ -1 +0,0 @@
-Build from DESKTOP-1V4QLOQ at 2022/11/27 0:36:14

+ 0 - 7
Assets/StreamingAssets/build_info.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 486bbcaf30cdc274080f50da700117e1
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 42
Assets/ThirdAssets/Unity-Logs-Viewer/Reporter/Reporter.cs

@@ -601,7 +601,6 @@ public class Reporter : MonoBehaviour
 	void Start()
 	{
 		logDate = System.DateTime.Now.ToString();
-		StartCoroutine("readInfo");
 	}
 
 	//clear all logs
@@ -2087,47 +2086,6 @@ public class Reporter : MonoBehaviour
 		PlayerPrefs.Save();
 	}
 
-	//read build information 
-	IEnumerator readInfo()
-	{
-		string prefFile = "build_info"; 
-		string url = prefFile; 
-
-		if (prefFile.IndexOf("://") == -1) {
-			string streamingAssetsPath = Application.streamingAssetsPath;
-			if (streamingAssetsPath == "")
-				streamingAssetsPath = Application.dataPath + "/StreamingAssets/";
-			url = System.IO.Path.Combine(streamingAssetsPath, prefFile);
-		}
-
-		//if (Application.platform != RuntimePlatform.OSXWebPlayer && Application.platform != RuntimePlatform.WindowsWebPlayer)
-			if (!url.Contains("://"))
-				url = "file://" + url;
-
-
-		// float startTime = Time.realtimeSinceStartup;
-#if UNITY_CHANGE4
-		UnityWebRequest www = UnityWebRequest.Get(url);
-		yield return www.SendWebRequest();
-#else
-		WWW www = new WWW(url);
-		yield return www;
-#endif
-
-		if (!string.IsNullOrEmpty(www.error)) {
-			Debug.LogError(www.error);
-		}
-		else {
-#if UNITY_CHANGE4
-			buildDate = www.downloadHandler.text;
-#else
-			buildDate = www.text;
-#endif
-		}
-
-		yield break;
-	}
-
     private void SaveLogsToDevice()
     {
         string filePath = Application.persistentDataPath + "/logs.txt";