瀏覽代碼

添加LogHelper

beiguoxia 1 年之前
父節點
當前提交
70a467692a

+ 2 - 2
GameClient/Assets/Editor/Excel/Template/Config.txt

@@ -1,7 +1,7 @@
 #if UNITY_2017_1_OR_NEWER
     using Mono.Data.Sqlite;
 #else
-using Microsoft.Data.Sqlite;
+	using Microsoft.Data.Sqlite;
 #endif
 
 namespace GFGGame
@@ -13,8 +13,8 @@ namespace GFGGame
 		public void setData(SqliteDataReader reader)
 		{
 {variable assignment}
-            
 
+            LogHelper.LogEditor("InitConfig:" + nameof({CfgName}));
 		}
 		
 	}

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Log.meta

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

+ 15 - 0
GameClient/Assets/Game/HotUpdate/Log/LogHelper.cs

@@ -0,0 +1,15 @@
+using UnityEngine;
+
+namespace GFGGame
+{
+    public static class LogHelper
+    {
+        public static void LogEditor(string content)
+        {
+#if UNITY_EDITOR
+            Debug.Log(content);
+#endif
+        }
+    }
+}
+

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Log/LogHelper.cs.meta

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