Ejemplo n.º 1
0
        public bool WasHit(float time)
        {
            if (!_wasHit)
            {
                _wasHit = MusicCore.IsHit(this, time);

                if (_wasHit)
                {
                    noteVisual.color = _color;
                }

                return(_wasHit);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        //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);
        }