Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        StreamReader reader = new StreamReader("Assets/CSV/BookDetail.csv");

        File = new TextAsset(reader.ReadToEnd());
        Table.Load(File);
        Debug.Log(File.text);
        ListBook = Table.GetRowList();
        reader.Close();

        StreamReader readeritem = new StreamReader("Assets/CSV/AllItems.csv");

        FileItem = new TextAsset(readeritem.ReadToEnd());
        TableItem.Load(FileItem);
        Debug.Log(FileItem.text);
        ListItem = TableItem.GetRowList();
        readeritem.Close();

        StreamReader readermini = new StreamReader("Assets/CSV/MiniGame.csv");

        Filemini = new TextAsset(readermini.ReadToEnd());
        Tablemini.Load(Filemini);
        Debug.Log(Filemini.text);
        Listmini = Tablemini.GetRowList();
        readermini.Close();
    }