Browse Source

修改战斗dll中Log输出,链接到unity log

大爷 2 năm trước cách đây
mục cha
commit
cc516148ba
1 tập tin đã thay đổi với 7 bổ sung4 xóa
  1. 7 4
      Common/CommonLang/Log/Loggin.cs

+ 7 - 4
Common/CommonLang/Log/Loggin.cs

@@ -2,6 +2,9 @@
 using System.Collections.Generic;
 using System.Text;
 using System.IO;
+#if ClientOnly
+using UnityEngine;
+#endif
 
 namespace CommonLang.Log
 {
@@ -232,19 +235,19 @@ namespace CommonLang.Log
 
             if(level == LoggerLevel.ERROR)
             {
-                YXJDebug.logError(msg);
+                UnityEngine.Debug.LogError(msg);
             }
             else if(level == LoggerLevel.WARNNING)
             {
-                YXJDebug.logWarning(msg);
+                UnityEngine.Debug.LogWarning(msg);
             }
             else if(level == LoggerLevel.INFO)
             {
-                YXJDebug.logInfo(msg);
+                UnityEngine.Debug.Log(msg);
             }
             else
             {
-                YXJDebug.logDebug(msg);
+                UnityEngine.Debug.Log(msg);
             }
         }
 #endif