]> git.lizzy.rs Git - SuperMouseAdventure.git/blob - 2DGame/Assets/Scripts/Dialogue/BossSpeechBubble.cs
resizing objects
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Dialogue / BossSpeechBubble.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4
5 public class BossSpeechBubble : MonoBehaviour
6 {
7     [SerializeField]
8     GameObject dialogueManager;
9
10     BossDialogue dialogue;
11
12     public Transform[] speakers;
13
14     void Start()
15     {
16         dialogue = dialogueManager.GetComponent<BossDialogue>();
17     }
18
19     public void NextSpeaker()
20     {
21         transform.position = speakers[dialogue.index].position;
22     }
23 }