[M] sync n3

This commit is contained in:
2024-12-09 16:54:19 +08:00
parent c90bbe86e7
commit 05331e6286
845 changed files with 6138 additions and 1307 deletions

View File

@@ -0,0 +1,51 @@
using UnityEngine;
namespace ThinkingData.Analytics.Utils
{
public class TDLog
{
private static bool enableLog;
public static void EnableLog(bool enabled)
{
enableLog = enabled;
}
public static bool GetEnable()
{
return enableLog;
}
public static void i(string message)
{
if (enableLog)
{
Debug.Log("[ThinkingData] Info: " + message);
}
}
public static void d(string message)
{
if (enableLog)
{
Debug.Log("[ThinkingData] Debug: " + message);
}
}
public static void e(string message)
{
if (enableLog)
{
Debug.LogError("[ThinkingData] Error: " + message);
}
}
public static void w(string message)
{
if (enableLog)
{
Debug.LogWarning("[ThinkingData] Warning: " + message);
}
}
}
}