void OnGUI() { if (lines.Count > configMaxLines) { lines.RemoveRange(0, lines.Count - configMaxLines); } guiWindow.DrawGui(123456, ConsoleWindow); }