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); }
public void WriteToLog(string caller, string message, LogType logType) { OnWriteToLog?.Invoke(string.IsNullOrWhiteSpace(Id) ? caller : $"({Id}) {caller}", message, logType); }