ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user