예제 #1
0
    /*
     * IEnumerator WaitForKeyDown()
     * {
     *
     *  yield return new WaitForSeconds(3);
     *  dialogueBox.gameObject.SetActive(false);
     * }
     */

    public void Say(string dialogue)
    {
        ui.PauseGame();
        dialogueBox.gameObject.SetActive(true);
        //dialogueText.text = dialogue;
        StartCoroutine(WaitForKeyDown());
    }