Browse Source

移动脚本位置

蓝色星空 1 year ago
parent
commit
6a1bc0c61c

+ 6 - 0
Assets/Scripts/Blue/Other/SendLogInfo.cs

@@ -0,0 +1,6 @@
+public class SendLogInfo
+{
+    public string level { get; set; }
+    public string tag { get; set; }
+    public string message { get; set; }
+}

+ 11 - 0
Assets/Scripts/Blue/Other/SendLogInfo.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 60642566bd1583744b5b6f53d61fea91
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 1 - 11
Assets/Scripts/Blue/Service/ISendLogService.cs

@@ -45,7 +45,7 @@ public class SendLogService : ISendLogService
 
     private void PostMessage(string methodName, string jsonString)
     {
-        CoroutineExtensionUtility.StartCoroutine(PostRequestTest(methodName, jsonString));
+        CoroutineUtility.StartCoroutine(PostRequestTest(methodName, jsonString));
     }
     private IEnumerator PostRequestTest(string methodName, string jsonString)
     {
@@ -68,21 +68,11 @@ public class SendLogService : ISendLogService
             if (webRequest.error != null)
             {
                 Debug.LogError(webRequest.error + "\n" + webRequest.downloadHandler.text + "\n" + methodName);
-                //GameManager.Instance.text2.text = webRequest.error;
             }
             else
             {
                 Debug.Log(webRequest.downloadHandler.text);
-
             }
         }
     }
 }
-
-public class SendLogInfo
-{
-    public string level { get; set; }
-    public string tag { get; set; }
-    public string message { get; set; }
-
-}

+ 1 - 1
Assets/Scripts/Blue/Utility/CoroutineExtensionUtility.cs

@@ -1,7 +1,7 @@
 using System.Collections;
 using UnityEngine;
 
-public static class CoroutineExtensionUtility
+public static class CoroutineUtility
 {
     public static void StartCoroutine(IEnumerator  coroutine)
     {