2026-06-15 리듬게임 자동기능

This commit is contained in:
2026-06-15 17:37:32 +09:00
parent 6fe34d8eec
commit 38936c211a
28 changed files with 502 additions and 18 deletions

View File

@@ -4,6 +4,7 @@
public class RhythmNoteInstance : MonoBehaviour
{
[HideInInspector] public float HitTime; // 이 노트의 도달 시각
[HideInInspector] public int Lane; // 이 노트의 레인 (오토플레이 스틱 매칭용)
[SerializeField] private float _missWindow = 0.15f; // 판정선을 이만큼 지나면 자동 Miss
@@ -14,13 +15,14 @@ public class RhythmNoteInstance : MonoBehaviour
private Action<RhythmNoteInstance> _onMiss; // 지나쳐서 Miss 났을 때 통지
// 스폰 시 목적지·타이밍 주입 (B 방식)
public void Setup(Vector3 start, Vector3 target, float spawnTime, float hitTime,
public void Setup(Vector3 start, Vector3 target, float spawnTime, float hitTime, int lane,
Func<float> songTime, Action<RhythmNoteInstance> onMiss = null)
{
_start = start;
_target = target;
_spawnTime = spawnTime;
HitTime = hitTime;
Lane = lane;
_songTime = songTime;
_onMiss = onMiss;