using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpeechBubble : MonoBehaviour { [SerializeField] GameObject dialogueManager; Dialogue dialogue; public Transform[] speakers; void Start() { dialogue = dialogueManager.GetComponent(); } public void NextSpeaker() { transform.position = speakers[dialogue.index].position; } }