Павел Катышев
Знаток
(304),
на голосовании
8 месяцев назад
Assets\scripts\Dialogue\DialogueManager.cs(8,12): error CS0246: The type or namespace name 'TextMeshProUGUI' could not be found (are you missing a using directive or an assembly reference?)
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;
public class DialogueManager : MonoBehaviour { public TextMeshProUGUI dialogueText; public TextMeshProUGUI nameText;
public Animator boxAnim; public Animator startAnim;
public Queue sentences;
private void Start(){ sentences = new Queue(); }
public void StartDialogue(Dialogue dialogue) { boxAnim.SetBool("boxOpen", true); startAnim.SetBool("startOpen", false);
nameText.text = dialogue.name; sentences.Clear();
foreach(string sentence in dialogue.sentences) { sentences.Enqueue(sentence); } DisplayNextSentense(); }