using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TFramework
{
///
/// 日志工具
///
public static class Log
{
private readonly static string prefix = "【TFramework】:";
///
/// 普通日志
///
///
public static void Info(this string message, GameObject obj = null)
{
Debug.Log($"{prefix + message}",obj);
}
///
/// 警告日志
///
///
public static void Warning(this string message, GameObject obj = null)
{
Debug.LogWarning($"{prefix + message}",obj);
}
///
/// 错误日志
///
///
public static void Error(this string message,GameObject obj=null)
{
Debug.LogError($"{prefix + message}",obj);
}
}
}