public class BossDialogue : MonoBehaviour
{
public GameObject continueButton;
+ public GameObject skipButton;
public GameObject dialogueBox;
public GameObject SpeechBubble;
public GameObject mouse;
{
dialogueBox.SetActive(false);
continueButton.SetActive(false);
- //SpeechBubble.SetActive(false);
+ skipButton.SetActive(false);
+ SpeechBubble.SetActive(false);
speechBubble = SpeechBubble.GetComponent<BossSpeechBubble>();
boss = bossObject.GetComponent<Boss>();
}
public IEnumerator Type()
{
dialogueBox.SetActive(true);
+ skipButton.SetActive(true);
SpeechBubble.SetActive(true);
speechBubble.NextSpeaker();
foreach (char letter in sentences[index].ToCharArray())
FindObjectOfType<AudioManager>().Play("snail_fight");
}
}
+
+ public void Skip()
+ {
+ dialogueText.text = "";
+ dialogueBox.SetActive(false);
+ SpeechBubble.SetActive(false);
+ mouse.GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeRotation;
+ mouse.GetComponent<MouseController>().enabled = true;
+ }
}