#pragma strict
import System.IO;
private var str : String[];
function Start() {
var path : String = Application.dataPath + "/Resources/C.txt";
var sr : StreamReader = File.OpenText(path);
str = sr.ReadToEnd().Split("~"[0]);
for(var i : int = 1 ; i <= 100 ; i+= 2) {
print(str[i]);
}
}
function Update () {
}
import System.IO;
private var str : String[];
function Start() {
var path : String = Application.dataPath + "/Resources/C.txt";
var sr : StreamReader = File.OpenText(path);
str = sr.ReadToEnd().Split("~"[0]);
for(var i : int = 1 ; i <= 100 ; i+= 2) {
print(str[i]);
}
}
function Update () {
}
筆記本內要讀的字用~分開即可
留言
張貼留言