public static void WriteLine(TEXT_TYPE Type, string Text) { if (Type == TEXT_TYPE.INFO) Console.ForegroundColor = ConsoleColor.White; else if (Type == TEXT_TYPE.WARNING) Console.ForegroundColor = ConsoleColor.Yellow; else Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("[" + DateTime.Now.ToString() + "] " + Type.ToString() + ": " + Text); }
public static void WriteLine(TEXT_TYPE Type, string Text) { if (Type == TEXT_TYPE.INFO) { Console.ForegroundColor = ConsoleColor.White; } else if (Type == TEXT_TYPE.WARNING) { Console.ForegroundColor = ConsoleColor.Yellow; } else { Console.ForegroundColor = ConsoleColor.Red; } Console.WriteLine("[" + DateTime.Now.ToString() + "] " + Type.ToString() + ": " + Text); }
public string getText() { string text = ""; switch (textType) { case TEXT_TYPE.TEXT: if (uiText) { text = uiText.text; } break; case TEXT_TYPE.TEXT_MESH: if (textMesh) { text = textMesh.text; } break; case TEXT_TYPE.TEXT_MESH_PRO: if (text_PRO) { text = text_UGUI.text; } break; case TEXT_TYPE.TEXT_MESH_PRO_UGUI: if (text_UGUI) { text = text_PRO.text; } break; } if (text.Equals("")) { Debug.Log("No reference found for " + textType.ToString() + " ui text object."); } return(text); }