Ejemplo n.º 1
0
 private static void TryLog(string message, Color c, PUI_GameEventLog gameLog)
 {
     if (gameLog == null || !gameLog.gameObject.activeSelf)
     {
         return;
     }
     foreach (string item in message.Split(Environment.NewLine.ToCharArray()))
     {
         if (item.Trim().Length < 1)
         {
             continue;
         }
         gameLog.AddLogItem("<color=#" + ColorExt.ToHex(c) + "> > " + "DiffTweaker" + "</color>: " + item, eGameEventChatLogType.IncomingChat);
     }
 }