📜  unity 逐行读取文本文件 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:44.145000             🧑  作者: Mango

代码示例1
string path = "Path/names.txt";
     
         string[] lines = System.IO.File.ReadAllLines (path);
 
         c.name = lines[Random.Range(0,lines.Length)];