void GoingNote() { for (int i = 0; i < notes.Count; i++) { //if(i == 0) //{ // Debug.Log("tttt : " + (Time.time - playTime)); // Debug.Log("mmmm : " + music.time); //} //Debug.Log(lines[notes[i].num - 1].localPosition.y + (notes[i].time - (Time.time - playTime)) * speed); notes[i].transform.localPosition = new Vector3(notes[i].transform.localPosition.x, lines[notes[i].num - 1].localPosition.y + (notes[i].time - (Time.time - playTime)) * speed, notes[i].transform.localPosition.z); if (notes[i].transform.localPosition.y - lines[notes[i].num - 1].transform.localPosition.y < -(speed * 0.2)) { if (notes[i].noteKind == Note.NoteKind.Long) { if (notes[i].off == false) { scoreUI.Score(ScoreUI.Judgment.Miss); comboUI.breakCombo(); notes[i].off = true; } if (notes[i].GetComponent <LongNote>().touched == false) { //notes[i].GetComponent<LongNote>().Miss(); //notes.Remove(notes[i]); } } else if (notes[i].noteKind == Note.NoteKind.Swipe) { for (int j = 0; j < swipeTouch.Count; j++) { if (swipeTouch[j].note == notes[i].GetComponent <SwipeNote>()) { swipeTouch.Remove(swipeTouch[j]); j--; } } } else if (notes[i].noteKind == Note.NoteKind.SubLong) { if (notes[i].off == false) { scoreUI.Score(ScoreUI.Judgment.Miss); comboUI.breakCombo(); notes[i].off = true; } //notes.Remove(notes[i]); } else { if (notes[i].off == false) { scoreUI.Score(ScoreUI.Judgment.Miss); comboUI.breakCombo(); GameObject dstemp = notes[i].gameObject; notes.Remove(notes[i]); Destroy(dstemp); i--; } } } } }