Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var letterPause = 0.2;
- var sound : AudioClip;
- var myText : String = "testtttttttttt" + "\n" + "testttttttttttttt";
- function Start () {
- TypeText ();
- }
- function TypeText () {
- for (var letter in myText.ToCharArray()) {
- guiText.text += letter;
- if (sound)
- audio.PlayOneShot (sound);
- yield WaitForSeconds (letterPause);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement