void Start() { c_ImgManager = this.gameObject.GetComponent <CharacterImageManager>(); LOneBlackOut = cg_storyCSVDatas[storyID + 1][9]; LOneBlackOut = cg_storyCSVDatas[storyID + 1][10]; LOneBlackOut = cg_storyCSVDatas[storyID + 1][11]; LOneBlackOut = cg_storyCSVDatas[storyID + 1][12]; red = 1f; green = 1f; blue = 1f; }
void Awake() { //次に読み込むストーリーが確定してたら if (nextStory != null) { dataLoadName = nextStory; } c_ImgManager = GetComponent <CharacterImageManager>(); //CSVデータ読み込み storyCSVFile = Resources.Load("Data/" + dataLoadName) as TextAsset; StringReader reader = new StringReader(storyCSVFile.text); while (reader.Peek() > -1) { string line = reader.ReadLine(); storyCSVDatas.Add(line.Split(',')); storyCSVHeight++; } }