IEnumerator OnChoiceSelected(Script.Menu menu, Script.Choice choice)
    {
        // Show the choice text after the choice has been selected

        textbox.text = choice.ToString();
        yield return(new WaitForSecondsRealtime(2f));
    }
Example #2
0
        // 선택지가 선택된 순간에 무엇을 할까
        // 선택에 의해 스토리 분기가 달라지는 것은 VGPrompter에 이미 구현되있음
        // 여기서는 선택지에 Hook 되어 같이 발동될 무언가를 구현하는 곳
        // 입력: 선택된 것이 온다
        private IEnumerator OnChoiceSelected(Script.Menu menu, Script.Choice choice)
        {
            // Do nothing for now

            // Show the choice text after the choice has been selected
            Debug.Log(choice.ToString());
            yield return(null);
        }