Files
Commercialization.topon/AnyThinkPlugin/Script/IntegrationManager/Editor/ATLog.cs

37 lines
689 B
C#
Raw Normal View History

2023-09-04 16:57:46 +08:00
using System;
using System.Collections;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
2024-03-12 02:17:14 +08:00
public class ATLog {
public static bool isDebug = false;
public static void log(string msg)
2023-09-04 16:57:46 +08:00
{
// string msg =
2024-03-12 02:17:14 +08:00
if (isDebug) {
Debug.Log(msg);
}
2023-09-04 16:57:46 +08:00
}
2024-03-12 02:17:14 +08:00
public static void log(string tag, string msg)
2023-09-04 16:57:46 +08:00
{
2024-03-12 02:17:14 +08:00
if (isDebug) {
Debug.Log(tag + ": " + msg);
}
2023-09-04 16:57:46 +08:00
}
2024-03-12 02:17:14 +08:00
public static void logFormat(string msg, object[] args)
{
if (isDebug) {
Debug.LogFormat(msg, args);
}
2023-09-04 16:57:46 +08:00
}
2024-03-12 02:17:14 +08:00
public static void logError(string msg)
2023-09-04 16:57:46 +08:00
{
2024-03-12 02:17:14 +08:00
Debug.LogError(msg);
2023-09-04 16:57:46 +08:00
}
}