mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-09 19:25:10 +00:00
parent
2ae2cac02c
commit
4ce1c323ef
2 changed files with 5 additions and 13 deletions
|
@ -559,7 +559,6 @@ namespace HeavenStudio.Games
|
|||
}
|
||||
else
|
||||
{
|
||||
allEnds.Sort((x, y) => x.beat.CompareTo(y.beat));
|
||||
double nextSwitchBeat = double.MaxValue;
|
||||
foreach (var end in allEnds)
|
||||
{
|
||||
|
@ -570,19 +569,11 @@ namespace HeavenStudio.Games
|
|||
break;
|
||||
}
|
||||
}
|
||||
List<RiqEntity> tempEvents = new();
|
||||
foreach (var countIn in countInEvents)
|
||||
var lastCountIn = countInEvents.FindLast(e => e.beat < nextSwitchBeat && e.beat + e.length >= beat);
|
||||
if (lastCountIn != null)
|
||||
{
|
||||
if (countIn.beat < nextSwitchBeat)
|
||||
{
|
||||
tempEvents.Add(countIn);
|
||||
}
|
||||
}
|
||||
if (tempEvents.Count > 0)
|
||||
{
|
||||
tempEvents.Sort((x, y) => x.beat.CompareTo(y.beat));
|
||||
countInBeat = tempEvents[tempEvents.Count - 1].beat;
|
||||
countInLength = tempEvents[tempEvents.Count - 1].length;
|
||||
countInBeat = lastCountIn.beat;
|
||||
countInLength = lastCountIn.length;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
|||
|
||||
public void SpawnPlatforms(double beat)
|
||||
{
|
||||
Debug.Log("game.countInBeat : " + game.countInBeat);
|
||||
if (game.countInBeat != double.MinValue)
|
||||
{
|
||||
for (int i = 0; i < platformCount; i++)
|
||||
|
|
Loading…
Reference in a new issue