+using System;\r
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public float typingSpeed;
+ public bool skip;
+
void Start()
{
dialogueBox.SetActive(false);
{
continueButton.SetActive(true);
}
+
+ if (dialogueText.text != sentences[index])
+ {
+ if (Input.GetKeyDown(KeyCode.Return))
+ {
+ skip = true;
+ }
+ else
+ {
+ skip = false;
+ }
+ }
}
public IEnumerator Type()
}
}
+ public void Skip()
+ {
+ dialogueText.text = sentences[index];
+ }
+
public void NextSentence()
{
FindObjectOfType<AudioManager>().Play("click");
continueButton.SetActive(false);
+ skip= false;
if (index < sentences.Length - 1)
{