1.修复了一些错误\n2.导入了URP的Sample
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Demo.Game
|
||||
|
||||
[Header("Judgement")]
|
||||
[Content, SerializeField] private float BestJudgementTimePoint = -1;
|
||||
[Content, SerializeField] public UnityEvent<int> JudgementEvent = new();
|
||||
[Content, SerializeField] public UnityEvent<JudgementLevel> JudgementEvent = new();
|
||||
|
||||
public float GetBestJudgementTimePoint()
|
||||
{
|
||||
@@ -90,24 +90,11 @@ namespace Demo.Game
|
||||
BestJudgementTimePoint = -1;
|
||||
}
|
||||
|
||||
public void InvokeJudgement()
|
||||
public void InvokeJudgement(JudgementLevel level)
|
||||
{
|
||||
int judgeStats = JudgementLevelCount;
|
||||
if (InteractiveDurationStats == DurationStats.BeforeEnd)
|
||||
{
|
||||
judgeStats--;
|
||||
if (InteractableScoreIntervalStats == DurationStats.BeforeEnd)
|
||||
{
|
||||
judgeStats--;
|
||||
if (InteractableIntervalThatCanScoreBestStats == DurationStats.BeforeEnd)
|
||||
{
|
||||
judgeStats--;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (judgeStats == JudgementLevelCount)
|
||||
if (level == JudgementLevel.None)
|
||||
return;
|
||||
JudgementEvent.Invoke(judgeStats);
|
||||
JudgementEvent.Invoke(level);
|
||||
VisibleDurationStats = DurationStats.Judgement;
|
||||
VisibleDurationEndEvent.Invoke();
|
||||
InteractiveDurationStats = DurationStats.Judgement;
|
||||
@@ -162,8 +149,7 @@ namespace Demo.Game
|
||||
if (VisibleDurationStats == DurationStats.Judgement)
|
||||
return;
|
||||
//检定
|
||||
if (JudgementBehaviour(currentTime))
|
||||
InvokeJudgement();
|
||||
InvokeJudgement(JudgementBehaviour(currentTime));
|
||||
if (tickType == TickType.Update)
|
||||
{
|
||||
// 可见区间
|
||||
|
||||
Reference in New Issue
Block a user