// Update is called once per frame
 void Update()
 {
     if (noteCount < nowMusicNode.notes.Count)
     {
         if (nowMusicNode.notes[noteCount].time != 0)
         {
             if (inGameManager.music.time > nowMusicNode.notes[noteCount].time - (50 / inGameManager.speed))
             {
                 if (nowMusicNode.notes[noteCount].noteKind == Note.NoteKind.Short)
                 {
                     inGameManager.InstanceShortNote(new InGameManager.NoteData(nowMusicNode.notes[noteCount].time, nowMusicNode.notes[noteCount].num));
                     noteCount++;
                 }
                 else if (nowMusicNode.notes[noteCount].noteKind == Note.NoteKind.Swipe)
                 {
                     inGameManager.InstanceSwipeNote(new InGameManager.NoteData(nowMusicNode.notes[noteCount].time, nowMusicNode.notes[noteCount].num));
                     noteCount++;
                 }
                 else if (nowMusicNode.notes[noteCount].noteKind == Note.NoteKind.Long)
                 {
                     List <InGameManager.NoteData> temp = new List <InGameManager.NoteData>();
                     temp.Add(new InGameManager.NoteData(nowMusicNode.notes[noteCount].time, nowMusicNode.notes[noteCount].num));
                     noteCount++;
                     while (true)
                     {
                         if (noteCount == nowMusicNode.notes.Count || nowMusicNode.notes[noteCount].noteKind != Note.NoteKind.SubLong)
                         {
                             break;
                         }
                         temp.Add(new InGameManager.NoteData(nowMusicNode.notes[noteCount].time, nowMusicNode.notes[noteCount].num));
                         noteCount++;
                     }
                     inGameManager.InstanceLongNote(temp.ToArray());
                 }
             }
         }
         else
         {
             noteCount++;
         }
     }
 }