mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Nya
This commit is contained in:
1 parent
9233999432
commit
4360d8b2b8
37 files changed
+6587
-775
No files matched your search
@@ -14,6 +14,7 @@ public class Dialogue : MonoBehaviour
|
||||
public List<int> emotes = new List<int>();
|
||||
int curPage = 0;
|
||||
public bool isOpen = false;
|
||||
public bool isDream = false;
|
||||
//used to activate/deactivate test object
|
||||
//activate through outside means probably
|
||||
public GameObject textTest;
|
||||
@@ -100,16 +101,34 @@ public class Dialogue : MonoBehaviour
|
||||
++cCount;
|
||||
textbox.text = pages[curPage].Substring(0, cCount);
|
||||
elapsed = 0;
|
||||
if(isTalking){
|
||||
if (isTalking)
|
||||
{
|
||||
int RNGSound = Random.Range(0, 2);
|
||||
if (RNGSound == 0) {
|
||||
audioManager.Play("blip");
|
||||
Debug.Log("blip");
|
||||
if (isDream = true)
|
||||
{
|
||||
if (RNGSound == 0)
|
||||
{
|
||||
audioManager.Play("dreamblip");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
audioManager.Play("dreamblop");
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
audioManager.Play("blop");
|
||||
Debug.Log("blop");
|
||||
if (RNGSound == 0)
|
||||
{
|
||||
audioManager.Play("blip");
|
||||
Debug.Log("blip");
|
||||
}
|
||||
else
|
||||
{
|
||||
audioManager.Play("blop");
|
||||
Debug.Log("blop");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user