Beispiel #1
0
 public static void CustomDebugLogWarning(object _logWarning)
 {
     if (TDS_LoggerManager.Instance.CurrentUser == null && !TDS_LoggerManager.Instance.CurrentUser.EnableLogsWarning)
     {
         return;
     }
     Debug.LogWarning($"{TDS_LoggerManager.Instance.CurrentUser.UserName} LogWarning: <color={TDS_LoggerManager.Instance.CurrentUser.WorkerColor}>{_logWarning}</color>");
     OnLogDebugged?.Invoke(TDS_LoggerManager.Instance.CurrentUser, _logWarning.ToString());
 }
Beispiel #2
0
    public static void CustomDebugLogWarning(object _logWarning, string _userName)
    {
        LogUser _user = TDS_LoggerManager.Instance.GetUserFromName(_userName);

        if (!_user.EnableLogsWarning)
        {
            return;
        }
        Debug.LogWarning($"{_user.UserName} LogWarning: <color={_user.WorkerColor}>{_logWarning}</color>");
        OnLogDebugged?.Invoke(_user, _logWarning.ToString());
    }