tunnel scroll

working dough fix
This commit is contained in:
minenice55
2024-01-15 14:22:26 -05:00
parent da37cc7aae
commit 5482d3e799
14 changed files with 1833 additions and 132 deletions

View File

@ -263,15 +263,8 @@ namespace HeavenStudio.Games
private List<RiqEntity> GetAllBallsInBetweenBeat(double beat, double endBeat)
{
List<RiqEntity> ballEvents = EventCaller.GetAllInGameManagerList("workingDough", new string[] { "small ball", "big ball" });
List<RiqEntity> tempEvents = new();
foreach (var entity in ballEvents)
{
if (entity.beat >= beat && entity.beat < endBeat)
{
tempEvents.Add(entity);
}
}
List<RiqEntity> tempEvents = ballEvents.FindAll(x => x.beat >= beat && x.beat < endBeat);
tempEvents.Sort((x, y) => x.beat.CompareTo(y.beat));
return tempEvents;
}
@ -426,6 +419,7 @@ namespace HeavenStudio.Games
public void SpawnPlayerBall(double beat, bool isBig, bool hasGandw)
{
Debug.Log($"Spawned player ball for beat {beat} (big: {isBig})");
var objectToSpawn = isBig ? playerEnterBigBall : playerEnterSmallBall;
var spawnedBall = GameObject.Instantiate(objectToSpawn, ballHolder);
@ -481,6 +475,12 @@ namespace HeavenStudio.Games
}
}
public override void OnPlay(double beat)
{
queuedIntervals.Clear();
passedTurns.Clear();
}
void Update()
{
if (spaceshipRising && !bgDisabled) spaceshipAnimator.DoScaledAnimation("RiseSpaceship", risingStartBeat, risingLength);