Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OtherFunction()
- {
- StartCoroutine(PlayNotes());
- }
- IEnumerator void PlayNotes()
- {
- for (int i = 0; i < newNotesCount; i++)
- {
- yield return new WaitForSeconds(TIME_INC);
- int n = notesToPlay[i];
- notes[n].Play();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement