Revert "Merge pull request '리듬게임' (#5) from CatsRhythmGame into main"
This reverts commit58385bf819, reversing changes made to8369e2ab51.
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
|
||||
public class RhythmNoteInstance : MonoBehaviour
|
||||
{
|
||||
[HideInInspector] public float HitTime; // 이 노트의 도달 시각
|
||||
[HideInInspector] public int Lane; // 이 노트의 레인 (오토플레이 스틱 매칭용)
|
||||
public float HitTime; // 이 노트의 도달 시각
|
||||
|
||||
[SerializeField] private float _missWindow = 0.15f; // 판정선을 이만큼 지나면 자동 Miss
|
||||
|
||||
@@ -15,14 +14,13 @@ public class RhythmNoteInstance : MonoBehaviour
|
||||
private Action<RhythmNoteInstance> _onMiss; // 지나쳐서 Miss 났을 때 통지
|
||||
|
||||
// 스폰 시 목적지·타이밍 주입 (B 방식)
|
||||
public void Setup(Vector3 start, Vector3 target, float spawnTime, float hitTime, int lane,
|
||||
public void Setup(Vector3 start, Vector3 target, float spawnTime, float hitTime,
|
||||
Func<float> songTime, Action<RhythmNoteInstance> onMiss = null)
|
||||
{
|
||||
_start = start;
|
||||
_target = target;
|
||||
_spawnTime = spawnTime;
|
||||
HitTime = hitTime;
|
||||
Lane = lane;
|
||||
_songTime = songTime;
|
||||
_onMiss = onMiss;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user