Example #1
0
    public void SetDialogue(string dialogueLine, ActorSO actor)
    {
        if (_typewriterEffect)
        {
            _typewriterEffect.Run(dialogueLine, _lineText);
        }
        else
        {
            _lineText.SetText(dialogueLine);
            Debug.Log("Attached Typewriter component for typewriter effect.");
        }

        _actorNameText.SetText($"{actor.ActorName}");
    }