Log.cs 571 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. namespace ETModel
  3. {
  4. public static class Log
  5. {
  6. public static void Trace(string msg)
  7. {
  8. UnityEngine.Debug.Log(msg);
  9. }
  10. public static void Warning(string msg)
  11. {
  12. UnityEngine.Debug.LogWarning(msg);
  13. }
  14. public static void Info(string msg)
  15. {
  16. UnityEngine.Debug.Log(msg);
  17. }
  18. public static void Error(Exception e)
  19. {
  20. UnityEngine.Debug.LogError(e.ToString());
  21. }
  22. public static void Error(string msg)
  23. {
  24. UnityEngine.Debug.LogError(msg);
  25. }
  26. public static void Debug(string msg)
  27. {
  28. UnityEngine.Debug.Log(msg);
  29. }
  30. }
  31. }