Exemple #1
0
    public void LoadEnemyData()
    {
        EnemyDatas.Clear();
        var sr = new StreamReader(
            Application.streamingAssetsPath + "/Data/EnemyStatus.csv");
        string text = sr.ReadLine();

        while ((text = sr.ReadLine()) != null)
        {
            if (text == "")
            {
                continue;
            }
            EnemyStates ed = new EnemyStates();
            ed.DataInit(text);
            EnemyDatas.Add(ed);
        }
    }