You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
664 B
C#

using UnityEngine;
namespace Script.FrameWork
{
public static class LogHelper
{
public static bool IsEnable = true;
public static void LogWarn(string content, bool force = false)
{
if (IsEnable && !force)
Debug.LogWarning(content);
}
public static void LogError(string content, bool force = false)
{
if (IsEnable && !force)
Debug.LogError(content);
}
public static void LogInfo(string content, bool force = false)
{
if (IsEnable && !force)
Debug.Log(content);
}
}
}