12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections;
- using System.IO;
- using System.Linq;
- using UnityEditor;
- using UnityEngine;
- public class ATLog {
- public static bool isDebug = false;
- public static void log(string msg)
- {
- // string msg =
- if (isDebug) {
- Debug.Log(msg);
- }
- }
- public static void log(string tag, string msg)
- {
- if (isDebug) {
- Debug.Log(tag + ": " + msg);
- }
- }
- public static void logFormat(string msg, object[] args)
- {
- if (isDebug) {
- Debug.LogFormat(msg, args);
- }
- }
- public static void logError(string msg)
- {
- Debug.LogError(msg);
- }
- }
|