42 lines
1013 B
C#
42 lines
1013 B
C#
using UnityEngine;
|
|
|
|
namespace ThinkingAnalytics.Utils
|
|
{
|
|
public class TD_Log
|
|
{
|
|
private static bool enableLog;
|
|
public static void EnableLog(bool enabled)
|
|
{
|
|
enableLog = enabled;
|
|
}
|
|
|
|
public static bool GetEnable()
|
|
{
|
|
return enableLog;
|
|
}
|
|
|
|
public static void d(string message)
|
|
{
|
|
if (enableLog)
|
|
{
|
|
Debug.Log("[ThinkingEngine] (Unity_V" + TD_PublicConfig.LIB_VERSION + ") " + message);
|
|
}
|
|
}
|
|
|
|
public static void e(string message)
|
|
{
|
|
if (enableLog)
|
|
{
|
|
Debug.LogError("[ThinkingEngine] (Unity_V" + TD_PublicConfig.LIB_VERSION + ") " + message);
|
|
}
|
|
}
|
|
|
|
public static void w(string message)
|
|
{
|
|
if (enableLog)
|
|
{
|
|
Debug.LogWarning("[ThinkingEngine] (Unity_V" + TD_PublicConfig.LIB_VERSION + ") " + message);
|
|
}
|
|
}
|
|
}
|
|
} |