Beispiel #1
0
    //Set the DialogUI to have the correct text, images, names etc.
    public void SetDialogUI(Speech speech)
    {
        ClearDialogUI();
        fullText = speech.Text;
        if (nameUI_)
        {
            nameUI_.text = speech.SpeakerName;
        }
        if (speakerImage_)
        {
            speakerImage_.sprite = speech.SpeakerSprite;
        }

        if (OnSpeechSpoke != null)
        {
            OnSpeechSpoke.Invoke(speech);
        }
    }
    //Set the DialogUI to have the correct text, images, names etc.
    public void SetDialogUI(CombatStatusSpeech speech)
    {
        if (textUI_)
        {
            textUI_.transform.parent.parent.gameObject.SetActive(true);
        }

        nextAnimator_.SetBool("SpeechFinished", false);
        nextAnimator_.gameObject.SetActive(false);

        gameObject.transform.GetChild(0).GetComponent <Button>().Select();

        ClearDialogUI();
        fullText = speech.Text;

        if (OnSpeechSpoke != null)
        {
            OnSpeechSpoke.Invoke(speech);
        }
    }