Skip to content

Commit

Permalink
노트 인식 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zmonteiro committed May 31, 2020
1 parent ba73044 commit 4ca260f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion RhythmGame/Assets/Script/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void Update()
.OrderBy(t => Mathf.Abs(this.transform.position.y - t.transform.position.y)))
{
var dif = Mathf.Abs(this.transform.position.y - note.transform.position.y);
if (dif > 50f)
if (dif > NoteManager.NOTE_HIT_TUNEL * NoteManager.Instance.noteSpeedTimeRatio)
continue;

note.Hit(dif);
Expand Down
3 changes: 0 additions & 3 deletions RhythmGame/Assets/Script/Note.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ public void Init(KeyCode _keyCode, float _speed = 300f)

public void Hit(float dif)
{
if (dif > NoteManager.NOTE_HIT_TUNEL * NoteManager.Instance.noteSpeedTimeRatio)
return;

if(dif > NoteManager.NOTE_MISS_TUNEL * NoteManager.Instance.noteSpeedTimeRatio) // 30.1f ~ 50 사이는 미스
{
GameManager.Instance.missCount++;
Expand Down

0 comments on commit 4ca260f

Please sign in to comment.