@@ -164,11 +164,6 @@ namespace Ichni.RhythmGame
|
||||
return;
|
||||
}
|
||||
|
||||
/*if (isOnTrack)
|
||||
{
|
||||
UpdateNoteInTrack();
|
||||
}*/
|
||||
|
||||
float songTime = EditorManager.instance.songInformation.songTime;
|
||||
|
||||
if (isFirstJudged && songTime < exactJudgeTime)
|
||||
@@ -182,23 +177,18 @@ namespace Ichni.RhythmGame
|
||||
if (isHolding)
|
||||
{
|
||||
holdingTime = songTime - exactJudgeTime;
|
||||
}
|
||||
|
||||
if (isHolding && songTime > holdEndTime)
|
||||
{
|
||||
isHolding = false;
|
||||
isFinalJudged = true;
|
||||
noteAudioSubmodule?.PlayNoteJudgeAudios(EditorManager.instance.currentJudgeType);//有待商榷
|
||||
if (songTime > holdEndTime)
|
||||
{
|
||||
isHolding = false;
|
||||
isFinalJudged = true;
|
||||
//noteAudioSubmodule?.PlayNoteJudgeAudios(EditorManager.instance.currentJudgeType);//有待商榷
|
||||
}
|
||||
}
|
||||
|
||||
if (!isFirstJudged && songTime >= exactJudgeTime)
|
||||
{
|
||||
if (!isFirstJudged)
|
||||
{
|
||||
isFirstJudged = true;
|
||||
}
|
||||
|
||||
if (isFirstJudged && !isHolding && songTime < holdEndTime)
|
||||
isFirstJudged = true;
|
||||
if (!isHolding && songTime < holdEndTime)
|
||||
{
|
||||
noteAudioSubmodule?.PlayNoteJudgeAudios(EditorManager.instance.currentJudgeType);
|
||||
isHolding = true;
|
||||
@@ -244,13 +234,17 @@ namespace Ichni.RhythmGame
|
||||
noteScreenPosition = EditorManager.instance.cameraManager.gameCamera.gameCamera.WorldToScreenPoint(noteVisual.transform.position);
|
||||
}
|
||||
}
|
||||
if (isHolding && !holdingHoldList.Contains(this))
|
||||
|
||||
// 优化持有列表的添加和移除
|
||||
if (isHolding)
|
||||
{
|
||||
holdingHoldList.Add(this);
|
||||
if (!holdingHoldList.Contains(this))
|
||||
holdingHoldList.Add(this);
|
||||
}
|
||||
else if (!isHolding && holdingHoldList.Contains(this))
|
||||
else
|
||||
{
|
||||
holdingHoldList.Remove(this);
|
||||
if (holdingHoldList.Contains(this))
|
||||
holdingHoldList.Remove(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user