42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|