Skip to content

Instantly share code, notes, and snippets.

@identity2
Created June 8, 2019 12:52
Show Gist options
  • Save identity2/14aec56f3dc00118b724b98f32f5923f to your computer and use it in GitHub Desktop.
Save identity2/14aec56f3dc00118b724b98f32f5923f to your computer and use it in GitHub Desktop.
if (nextIndex < notes.Length && notes[nextIndex] < songPosInBeats + beatsShownInAdvance)
{
Instantiate( /* Music Note Prefab */ );
//initialize the fields of the music note
nextIndex++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment