Finished Textbox interaction

changed movement to pause it
This commit is contained in:
Rizvee committed 2022-02-23 20:09:45 -06:00
1 parent 3a81f1a122
commit 6a18528098
5 files changed
+77 -38

No files matched your search

+3 -3
View File
@@ -6,6 +6,7 @@ using TMPro;
public class Dialogue : MonoBehaviour
{
public Animator animator;
public RuntimeAnimatorController controller;
public TMP_Text textbox;
public TMP_Text arrow;
public AudioManager audioManager;
@@ -16,7 +17,6 @@ public class Dialogue : MonoBehaviour
//used to activate/deactivate test object
//activate through outside means probably
public GameObject textTest;
public GameObject headText;
//used to print the first x letters of the text
int cCount = 0;
//changes the pace at which chars appear
@@ -32,6 +32,7 @@ public class Dialogue : MonoBehaviour
{
arrow.text = "";
}
animator.runtimeAnimatorController = controller;
}
//Adds a page of text
@@ -73,8 +74,7 @@ public class Dialogue : MonoBehaviour
//exits the textbox
isOpen = false;
Movement.pause = false;
textTest.SetActive(false);
headText.SetActive(false);
Destroy(textTest);
cCount = 0;
curPage = 0;
}