MemeTexter/Assets/Scripts/GlobalGallery.cs
/// <summary>
/// Fills the list of usernames with names from Resources/MemeFiles/NameData.txt
/// </summary>
Fills the list of usernames with names from Resources/MemeFiles/NameData.txt
Fills the list of usernames with names from Resources / MemeFiles / NameData . txt
private static void FillUserNames()
    {
        TextAsset textFile = (TextAsset)Resources.Load("MemeFiles/NameData");
        string[] lines = textFile.text.Split("\n"[0]);
        for (int i = 0; i < lines.Length; i++)
        {
            userNames.Add(lines[i]);
        }
    }
private static void FillUserNames ( ) { TextAsset textFile = ( TextAsset ) Resources . Load ( " " ) ; string [ ] lines = textFile . text . Split ( " \n " [ 0 ] ) ; for ( int i = 0 ; i < lines . Length ; i ++ ) { userNames . Add ( lines [ i ] ) ; } }
Fills the list of usernames with names from Resources/MemeFiles/NameData.txt
Fills the list of usernames with names from Resources / MemeFiles / NameData . txt
// For each line in NameData.txt...