forked from Shardstone/trail-into-darkness
added more utilty packges
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine;
|
||||
using Debug = UnityEngine.Debug;
|
||||
|
||||
namespace Jovian.Utilities {
|
||||
|
||||
public static class BowserLog {
|
||||
|
||||
private const string PREFIX = "Bowser:";
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining), DebuggerHidden]
|
||||
public static void Log(string log, object obj = null) {
|
||||
Debug.Log(obj == null ? $"{PREFIX}{log}" : $"{PREFIX}[{obj.GetType().Name}] {log}", obj as Object);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining), DebuggerHidden]
|
||||
public static void LogWarning(string log, object obj = null) {
|
||||
Debug.LogWarning(obj == null ? $"{PREFIX}{log}" : $"{PREFIX}[{obj.GetType().Name}] {log}", obj as Object);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining), DebuggerHidden]
|
||||
public static void LogError(string log, object obj = null) {
|
||||
Debug.LogError(obj == null ? $"{PREFIX}{log}" : $"{PREFIX}[{obj.GetType().Name}] {log}", obj as Object);
|
||||
}
|
||||
|
||||
[Conditional("UNITY_EDITOR"), Conditional("DEVELOPMENT_BUILD"), DebuggerHidden]
|
||||
public static void LogDebug(string log, object obj = null) {
|
||||
Debug.Log(obj == null ? $"{PREFIX}{log}" : $"{PREFIX}[{obj.GetType().Name}] {log}", obj as Object);
|
||||
}
|
||||
|
||||
[Conditional("UNITY_EDITOR"), Conditional("DEVELOPMENT_BUILD"), DebuggerHidden]
|
||||
public static void LogWarningDebug(string log, object obj = null) {
|
||||
Debug.LogWarning(obj == null ? $"{PREFIX}{log}" : $"{PREFIX}[{obj.GetType().Name}] {log}", obj as Object);
|
||||
}
|
||||
|
||||
[Conditional("UNITY_EDITOR"), Conditional("DEVELOPMENT_BUILD"), DebuggerHidden]
|
||||
public static void LogErrorDebug(string log, object obj = null) {
|
||||
Debug.LogError(obj == null ? $"{PREFIX}{log}" : $"{PREFIX}[{obj.GetType().Name}] {log}", obj as Object);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79607e8a014ff1841b183019d9102aff
|
||||
Reference in New Issue
Block a user