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.

37 lines
827 B
C#

using System;
using UnityEngine;
namespace Thirdweb.Unity
{
public static class ThirdwebDebug
{
public static bool IsEnabled { get; set; } = false;
private const string PREFIX = "[Thirdweb] ";
public static void Log(object message)
{
if (IsEnabled)
Debug.Log(PREFIX + message);
}
public static void LogWarning(object message)
{
if (IsEnabled)
Debug.LogWarning(PREFIX + message);
}
public static void LogError(object message)
{
if (IsEnabled)
Debug.LogError(PREFIX + message);
}
public static void LogException(Exception exception)
{
if (IsEnabled)
Debug.LogException(exception);
}
}
}