public bool WasHit(float time) { if (!_wasHit) { _wasHit = MusicCore.IsHit(this, time); if (_wasHit) { noteVisual.color = _color; } return(_wasHit); } else { return(false); } }
//TODO: make this smarter by taking advantage of sorted list public bool IsRowValid() { //SortNotes(); //var currentLatest = 0f; for (var i = 0; i < _notes.Count; i++) { for (var j = 0; j < _notes.Count; j++) { if ((j != i) && MusicCore.DoNotesOverlap(_notes[i], _notes[j])) { return(false); } } } return(true); }