unity read text file line by line code example
Example: unity read text file line by line
string path = "Path/names.txt";
string[] lines = System.IO.File.ReadAllLines (path);
c.name = lines[Random.Range(0,lines.Length)];
string path = "Path/names.txt";
string[] lines = System.IO.File.ReadAllLines (path);
c.name = lines[Random.Range(0,lines.Length)];