public override void Add(DrawableHitObject h) { switch (h) { case DrawableLyric _: LyricPlayfield.Add(h); break; case DrawableNote _: NotePlayfield.Add(h); break; default: base.Add(h); break; } }
public override void Add(HitObject h) { switch (h) { case Lyric _: LyricPlayfield.Add(h); break; case Note _: case BarLine _: NotePlayfield.Add(h); break; default: throw new ArgumentException($"Unsupported {nameof(HitObject)} type: {h.GetType()}"); } }
public override void Add(HitObject h) { switch (h) { case Lyric _: LyricPlayfield.Add(h); break; case Note _: case BarLine _: // hidden the note playfield until receive any note. NotePlayfield.Alpha = 1; NotePlayfield.Add(h); break; default: throw new ArgumentException($"Unsupported {nameof(HitObject)} type: {h.GetType()}"); } }
public override void Add(DrawableHitObject h) { switch (h) { case DrawableLyric _: LyricPlayfield.Add(h); break; case DrawableNote _: // hidden the note playfield until receive any note. NotePlayfield.Alpha = 1; NotePlayfield.Add(h); break; default: base.Add(h); break; } }