using UnityEngine; public abstract class BaseNote : MonoBehaviour { public int TrackIndex { get; protected set; } public string NoteColor { get; protected set; } public float Speed { get; protected set; } protected float hitTime; public virtual void Initialize(int trackIndex, string noteColor, float speed, float hitTime) { TrackIndex = trackIndex; NoteColor = noteColor; Speed = speed; this.hitTime = hitTime; } }