31 lines
660 B
C#
31 lines
660 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace WIFramework.Util
|
|
{
|
|
public static class DebugExtractor
|
|
{
|
|
static uint call;
|
|
static uint callCounter
|
|
{
|
|
get
|
|
{
|
|
if (call == uint.MaxValue)
|
|
call = 0;
|
|
return call++;
|
|
}
|
|
}
|
|
|
|
public static void LogError(this Debug d, string v)
|
|
{
|
|
Debug.LogError($"{callCounter} : {v}");
|
|
}
|
|
|
|
public static void Log(string format)
|
|
{
|
|
Debug.Log($"{callCounter} : {format}");
|
|
}
|
|
}
|
|
} |