Beispiel #1
0
 protected void WriteToLog(string caller, string message, LogType type, bool showOnHud = false, int duration = Settings.DefaultLocalMessageDisplayTime, string color = MyFontEnum.Green)
 {
     OnWriteToLog?.Invoke($"{Id}: {caller}", message, type, showOnHud, duration, color);
 }
Beispiel #2
0
 public void WriteToLog(string caller, string message, LogType logType)
 {
     OnWriteToLog?.Invoke(string.IsNullOrWhiteSpace(Id) ? caller : $"({Id}) {caller}", message, logType);
 }