ui基本完毕,修了一大把的bug

This commit is contained in:
FloatGaming
2026-07-13 02:28:39 +08:00
parent 1e20d73e90
commit fd22501f71
958 changed files with 378289 additions and 41038 deletions
+20 -4
View File
@@ -159,7 +159,11 @@ public class Note : BaseNote
private void Awake()
{
anim = GetComponent<AnimationController>();
anim = AnimationController.Global;
if (anim == null)
{
anim = GetComponent<AnimationController>();
}
controller = GetComponent<NoteController>();
}
@@ -298,6 +302,11 @@ public class Note : BaseNote
effectEventController.TryTriggerMultiNoteShake();
}
if (judgeResult != "Miss")
{
TrackJudgeHitEffectController.PlayTrackHitFx(TrackIndex);
}
globalNoteEffect.TryTrigger(noteData != null ? noteData.noteFunction : null);
Judge();
@@ -464,6 +473,11 @@ public class Note : BaseNote
effectEventController.TryTriggerMultiNoteShake();
}
if (judgeResult != "Miss")
{
TrackJudgeHitEffectController.PlayTrackHitFx(TrackIndex);
}
globalNoteEffect.TryTrigger(noteData != null ? noteData.noteFunction : null);
}
@@ -498,12 +512,14 @@ public class Note : BaseNote
hasLock = false;
}
ReturnToPool();
if (anim != null)
var animationController = AnimationController.Global ?? anim;
if (animationController != null)
{
anim.PlayDestroyAnimation(noteColor);
animationController.PlayDestroyAnimation(noteColor);
}
ReturnToPool();
// notify global judge manager that this short note has been finally judged (hit)
JudgeManager.Instance?.NotifyNoteJudged();
}