Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        storyManager  = StoryManager.Instance;
        textCoroutine = ReadText();

        if (storyManager.IsNewGame)
        {
            storyManager.LoadCSV(CSV_FileNames[storyManager.FileNum]);
        }
        else
        {
            storyManager.LoadCSV();
        }

        StartCoroutine(FadeToStart());
    }
Exemplo n.º 2
0
    public void NextLine()
    {
        storyManager.CurrentLine++;

        //만약 다음줄이 없다면 파일을 새로 읽음
        if (storyManager.Data.Count <= storyManager.CurrentLine)
        {
            if (CSV_FileNames[storyManager.FileNum] == null)
            {
                return;
            }

            Debug.Log("Next File");
            storyManager.LoadCSV(CSV_FileNames[storyManager.FileNum]);

            ReadLine();
        }

        ReadLine();
    }