예제 #1
0
 /// <summary>
 /// 로그를 무조건 출력한다. 릴리즈 빌드에도 로깅이 되므로 가급적 사용을 자제할 것.
 /// </summary>
 public static void L(this ILoggable loggable, string str, params object[] args)
 {
     if (args.Length > 0)
     {
         UnityEngine.Debug.LogFormat(loggable.Prefix(str), str, args);
     }
     else
     {
         UnityEngine.Debug.Log(loggable.Prefix(str));
     }
 }
예제 #2
0
 public static void A(this ILoggable loggable, bool condition, string str, params object[] args)
 {
     UnityEngine.Debug.AssertFormat(condition, loggable.Prefix(str), args);
 }
예제 #3
0
 public static void I(this ILoggable loggable, Func <string> makeStr)
 {
     UnityEngine.Debug.Log(loggable.Prefix(makeStr()));
 }