mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
Finished Textbox interaction
changed movement to pause it
This commit is contained in:
1 parent
3a81f1a122
commit
6a18528098
5 files changed
+77
-38
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user