ATLog.cs 689 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections;
  3. using System.IO;
  4. using System.Linq;
  5. using UnityEditor;
  6. using UnityEngine;
  7. public class ATLog {
  8. public static bool isDebug = false;
  9. public static void log(string msg)
  10. {
  11. // string msg =
  12. if (isDebug) {
  13. Debug.Log(msg);
  14. }
  15. }
  16. public static void log(string tag, string msg)
  17. {
  18. if (isDebug) {
  19. Debug.Log(tag + ": " + msg);
  20. }
  21. }
  22. public static void logFormat(string msg, object[] args)
  23. {
  24. if (isDebug) {
  25. Debug.LogFormat(msg, args);
  26. }
  27. }
  28. public static void logError(string msg)
  29. {
  30. Debug.LogError(msg);
  31. }
  32. }