repaired the motherfucking hold note problem which troubled us longer than 2 months
added some UI
This commit is contained in:
@@ -28,15 +28,12 @@ public class Note : BaseNote
|
||||
controller.SetSpeed(speed);
|
||||
}
|
||||
|
||||
// 同时注册到普通队列和多键队列
|
||||
InputManager.OnKeyPressed += HandlePress;
|
||||
JudgeManager.Instance.RegisterNoteForMultiKey(key, this);
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
InputManager.OnKeyPressed -= HandlePress;
|
||||
JudgeManager.Instance?.UnregisterNote(keyToPress, this);
|
||||
}
|
||||
|
||||
private void HandlePress(KeyCode key)
|
||||
@@ -49,15 +46,15 @@ public class Note : BaseNote
|
||||
|
||||
if (timeDifference <= 0.08f)
|
||||
{
|
||||
//Debug.Log($"短音符 {keyToPress}: Perfect");
|
||||
Debug.Log($"短音符 {keyToPress}: Perfect");
|
||||
}
|
||||
else if (timeDifference <= 0.15f)
|
||||
{
|
||||
//Debug.Log($"短音符 {keyToPress}: Great");
|
||||
Debug.Log($"短音符 {keyToPress}: Great");
|
||||
}
|
||||
else
|
||||
{
|
||||
//Debug.Log($"短音符 {keyToPress} Miss");
|
||||
Debug.Log($"短音符 {keyToPress} Miss");
|
||||
JudgeMiss();
|
||||
return;
|
||||
}
|
||||
@@ -84,7 +81,7 @@ public class Note : BaseNote
|
||||
ReturnToPool();
|
||||
if (anim !=null)
|
||||
{
|
||||
//Debug.Log("执行");
|
||||
Debug.Log("执行");
|
||||
anim.PlayDestroyAnimation(noteColor);
|
||||
}
|
||||
|
||||
@@ -94,7 +91,7 @@ public class Note : BaseNote
|
||||
{
|
||||
if (isJudged) return;
|
||||
isJudged = true;
|
||||
//Debug.Log($"短音符 {keyToPress} Miss");
|
||||
Debug.Log($"短音符 {keyToPress} Miss");
|
||||
ReturnToPool();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user