Files
bansonic_beta_main/Assets/scripts/gamePlay_gameplay/BaseNote.cs
T

22 lines
620 B
C#

using UnityEngine;
public abstract class BaseNote : MonoBehaviour
{
// 新增:控制音符显示状态
[System.NonSerialized] // 避免暴露在Inspector
public bool shouldBeVisible = true;
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;
}
}