修改部分的长音符判定bug,优化多键位同时触发的判定逻辑
Signed-off-by: Jiangqvweihuan <>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user