Skip to content

Commit

Permalink
Dialog Sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
doingitraith committed Jan 22, 2017
1 parent 825377a commit 443cc86
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 10 deletions.
Binary file modified GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab
Binary file not shown.
Binary file modified GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab
Binary file not shown.
Binary file modified GGJ17/Assets/Prefab/Dialog/Dialog.prefab
Binary file not shown.
5 changes: 4 additions & 1 deletion GGJ17/Assets/Script/Dialog/DialogBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ public IEnumerator Speak()
{
int i = 0;
textbox.text = "";

AudioSource a = GetComponent<AudioSource>();
a.loop = true;
a.Play();
while(i < text.Length)
{
textbox.text += text[i];
++i;
yield return new WaitForSeconds(.07f);
}
a.Stop();
}
}
9 changes: 0 additions & 9 deletions GGJ17/Assets/Script/WorldControl.meta

This file was deleted.

Binary file added GGJ17/Assets/Sounds/intro_text.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions GGJ17/Assets/Sounds/intro_text.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 443cc86

Please sign in to comment.