internal void AddLog(string logMessage, LogMessageColours colour) { Color textColour = Color.white; switch (colour) { case LogMessageColours.RED: textColour = Color.red; break; case LogMessageColours.GREEN: textColour = Color.green; break; case LogMessageColours.DARKGREEN: textColour = Color.yellow; break; } for (int i = 9; i > 0; i--) { logText[i].text = logText[i - 1].text; logText[i].color = logText[i - 1].color; } logText[0].text = logMessage; logText[0].color = textColour; }
private void OnNativeException(string log, LogMessageColours colour) { logBox.AddLog(log, colour); }