示例#1
0
        protected virtual void DrawSyncLine()
        {
            if (SyncedNote == null)
            {
                return;
            }

            if (!NoteHit && SyncedNote.Status == NoteStatus.Shown && Status == NoteStatus.Shown)
            {
                if (_lineHandle == 0)
                {
                    _lineHandle = _scene.CreateLine();
                }
                _scene.SetLineBetweenNotes(_lineHandle, _noteHandle, SyncedNote.GetSyncedNoteHandle(Time));
            }
            else if (Status == NoteStatus.Done || NoteHit)
            {
                Destroy(ref _lineHandle);
            }
        }