111
This commit is contained in:
@@ -36,6 +36,7 @@ namespace Ichni.RhythmGame
|
||||
[Title("In-Game Info")]
|
||||
public bool isDuringJudging;
|
||||
public Vector2 noteScreenPosition;
|
||||
public Vector2 perfectNoteScreenPosition;
|
||||
public bool isFirstJudged;
|
||||
public bool isFinalJudged;
|
||||
public override int HierarchyPriority => -10;
|
||||
@@ -76,8 +77,10 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void AfterInitialize()
|
||||
{
|
||||
perfectNoteScreenPosition = -Vector2.one;
|
||||
|
||||
float beyondTime = 0f;
|
||||
|
||||
|
||||
foreach (EffectBase effectBase in noteVisual.effectSubmodule.effectCollection["Generate"])
|
||||
{
|
||||
if (effectBase is NoteGenerateEffect ge)
|
||||
@@ -115,11 +118,24 @@ namespace Ichni.RhythmGame
|
||||
}
|
||||
}
|
||||
|
||||
if (isDuringJudging)
|
||||
if (perfectNoteScreenPosition == -Vector2.one) // -Vector2.one是一个不可能的屏幕位置,用来标记perfectNoteScreenPosition还没有被赋值
|
||||
{
|
||||
noteScreenPosition = GetScreenPosition();
|
||||
if (isDuringJudging)
|
||||
{
|
||||
noteScreenPosition = GetScreenPosition();
|
||||
}
|
||||
|
||||
if (exactJudgeTime <= GameManager.instance.songTime)
|
||||
{
|
||||
perfectNoteScreenPosition = noteScreenPosition;
|
||||
}
|
||||
}
|
||||
|
||||
/*if (!isFirstJudged && exactJudgeTime <= GameManager.instance.songTime)
|
||||
{
|
||||
SlowOffsetAfterExactJudgeTime();
|
||||
}*/
|
||||
|
||||
SetJudgeArea();
|
||||
|
||||
//SetJudgeRankText();
|
||||
@@ -129,11 +145,6 @@ namespace Ichni.RhythmGame
|
||||
e.UpdateEffect(exactJudgeTime);
|
||||
}
|
||||
|
||||
if (!isFirstJudged && exactJudgeTime < GameManager.instance.songTime)
|
||||
{
|
||||
SlowOffsetAfterExactJudgeTime();
|
||||
}
|
||||
|
||||
if (!isFirstJudged && GameManager.instance.songTime > exactJudgeTime + judgeIntervals.afterMiss)
|
||||
{
|
||||
Miss(exactJudgeTime + judgeIntervals.afterMiss);
|
||||
|
||||
Reference in New Issue
Block a user