예제 #1
0
    public void StartDialogue(Dialogue dialogue)
    {
        theButton.GetComponent <CanvasGroup>().alpha = 1.00f;
        box.GetComponent <CanvasGroup>().alpha       = 1.00f;
        nameText.text = dialogue.nameT;

        PlayerGameMechanics playerGameMechanics = player.GetComponent(typeof(PlayerGameMechanics)) as PlayerGameMechanics;

        playerGameMechanics.PauseGame();

        sentences.Clear();

        foreach (string s in dialogue.sentences)
        {
            sentences.Enqueue(s);
        }
        DisplayNextSentence();
    }