ball 项目提交
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace DataEyeAnalytics.Utils
|
||||
{
|
||||
public class DE_Log
|
||||
{
|
||||
private static bool enableLog;
|
||||
public static void EnableLog(bool enabled)
|
||||
{
|
||||
enableLog = enabled;
|
||||
}
|
||||
|
||||
public static void d(string message)
|
||||
{
|
||||
if (enableLog)
|
||||
{
|
||||
Debug.Log(message);
|
||||
}
|
||||
}
|
||||
|
||||
public static void e(string message)
|
||||
{
|
||||
if (enableLog)
|
||||
{
|
||||
Debug.LogError(message);
|
||||
}
|
||||
}
|
||||
|
||||
public static void w(string message)
|
||||
{
|
||||
if (enableLog)
|
||||
{
|
||||
Debug.LogWarning(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user