Ta android + ios

This commit is contained in:
LYP
2024-08-07 20:22:28 +08:00
parent 69fee08c61
commit 76458664d8
722 changed files with 41709 additions and 1 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);
}
}
}
}