public void UpdateMessageBar() { ROSConsole.Message msg = ROSConsole.GetLastMessage(); messageBarText.text = msg.GetTitle(); messageBarText.color = msg.GetColor() * 2f; LogType logType = ROSConsole.GetHighestLogType(); if (logType == LogType.Warning) { lockNotificationImage.enabled = true; lockNotificationImage.sprite = warningIcon; lockNotificationImage.color = warningColor; } else if (logType != LogType.Log) { lockNotificationImage.enabled = true; lockNotificationImage.sprite = errorIcon; lockNotificationImage.color = errorColor; } }
public void HandleLog(string message, string stack, LogType type) { ROSConsole.Print(message + "\n" + stack, type); }
public override void AppInit() { self = this; }