Пример #1
0
    public void SetDialogue(int index)
    {
        string charName;
        Text   dialogue     = GameObject.FindGameObjectWithTag("Dialogue").GetComponent <Text>();
        Text   continueText = GameObject.FindGameObjectWithTag("ContinueText").GetComponent <Text>();

        dialogue.text     = GetDialogue(index, out charName);
        continueText.text = textUpdater.FetchItem(continueText.name);

        if (charName == characters.Joaqs.ToString())
        {
            SetPortrait(joaqsHead);
            SetCharacterName(charName);
        }
        else if (charName == characters.Capataz.ToString())
        {
            SetPortrait(capatazHead);
            SetCharacterName(charName);
        }
    }