chicken_dy/Assets/HCMiniSdk/Scripts/Other/HCDebugger.cs

42 lines
1.0 KiB
C#
Raw Normal View History

2024-03-07 12:12:48 +00:00
using UnityEngine;
using System.Collections;
namespace HC
{
public class HCDebugger : MonoBehaviour
{
public static void LogDebug(string content)
{
if (HCOtherConfigs.IsDebugLog)
{
Debug.Log(string.Format("【HCSDK】 {0}", content));
#if UNITY_IOS
HCNativeInterfaceiOS.Instance.Log(string.Format("【HCSDK】 {0}", content));
#endif
}
}
public static void LogWarning(string content)
{
if (HCOtherConfigs.IsDebugLog)
{
Debug.LogWarning(string.Format("【HCSDK】 {0}", content));
}
}
public static void LogError(string content)
{
if (HCOtherConfigs.IsDebugLog)
{
Debug.LogError(string.Format("【HCSDK Error】 {0}", content));
}
}
public static void SetUnityLogger(bool _logEnable)
{
Debug.unityLogger.logEnabled = _logEnable;
}
}
}