Beispiel #1
0
 public static void LogWarning(object message, Tween t = null)
 {
     message = _LogPrefix + message;
     if (DOTween.debugMode && t != null)
     {
         bool hasDebugTargetId = t.debugTargetId != null;
         bool hasStringId      = t.stringId != null;
         bool hasIntId         = t.intId != -999;
         if (hasDebugTargetId || hasStringId || hasIntId)
         {
             message += "\n";
             if (hasDebugTargetId)
             {
                 message += string.Format("-[debug target ID: {0}]-", t.debugTargetId);
             }
             if (hasStringId)
             {
                 message += string.Format("-[stringId: {0}]-", t.stringId);
             }
             if (hasIntId)
             {
                 message += string.Format("-[intId: {0}]-", t.intId);
             }
         }
     }
     if (DOTween.onWillLog != null && !DOTween.onWillLog(LogType.Warning, message))
     {
         return;
     }
     Debug.LogWarning(message);
 }
Beispiel #2
0
 public static void LogReport(object message)
 {
     message = string.Format("<color=#00B500FF>{0} REPORT ► {1}</color>", _LogPrefix, message);
     if (DOTween.onWillLog != null && !DOTween.onWillLog(LogType.Log, message))
     {
         return;
     }
     Debug.Log(message);
 }
Beispiel #3
0
 public static void LogError(object message)
 {
     message = _LogPrefix + message;
     if (DOTween.onWillLog != null && !DOTween.onWillLog(LogType.Error, message))
     {
         return;
     }
     Debug.LogError(message);
 }
Beispiel #4
0
 public static void LogSafeModeReport(object message)
 {
     message = string.Format("<color=#ff7337>{0} SAFE MODE ►</color> {1}", _LogPrefix, message);
     if (DOTween.onWillLog != null && !DOTween.onWillLog(LogType.Log, message))
     {
         return;
     }
     Debug.LogWarning(message);
 }