7 public static class Logger
9 public static void Log(
string msg)
14 public static void Warn(
string msg)
16 Debug.LogWarning(msg);
19 public static void LogFromMethod(
string className,
string methodName,
string message)
21 Log(
"[AR+GPS][" + className +
"#" + methodName +
"]: " + message);
24 public static void LogFromMethod(
string className,
string methodName,
string message,
bool output)
28 LogFromMethod(className, methodName, message);
31 public static void LogFromMethod(
string className,
string methodName, Transform transform,
string prefix =
"")
33 var message = transform.name +
" - position = " + transform.position +
", localPosition = " + transform.localPosition +
", hasChanged = " + transform.hasChanged;
34 Log(
"[AR+GPS][" + className +
"#" + methodName +
"]: " + prefix +
" - " + message);
37 public static void LogFromMethod(
string className,
string methodName, Transform[] transform,
string prefix =
"")
40 foreach (var transform1
in transform)
43 LogFromMethod(className, methodName, transform1, prefix +
" (" + i +
")");
47 public static void WarnFromMethod(
string className,
string methodName,
string message)
49 Warn(
"[AR+GPS][" + className +
"#" + methodName +
"]: " + message);