Fixed Working Dough Swing (#948)

Working Dough was overlooked when swing was being added, this should fix it
This commit is contained in:
wookywok
2024-05-19 16:14:29 -05:00
committed by minenice55
parent 14c2abc91c
commit 30abc8c5cd
4 changed files with 10 additions and 8 deletions

View File

@ -15,7 +15,7 @@ namespace HeavenStudio.Games.Scripts_WorkingDough
public void Init(double beat, bool hasGandw)
{
startBeat = beat;
startBeat = Conductor.instance.GetUnSwungBeat(beat);
path = WorkingDough.instance.GetPath("NPCBall");
if (gandw != null) gandw.SetActive(hasGandw);
Update();
@ -27,7 +27,7 @@ namespace HeavenStudio.Games.Scripts_WorkingDough
if (cond.isPlaying && !cond.isPaused)
{
double beat = cond.songPositionInBeats;
double beat = cond.unswungSongPositionInBeats;
if (startBeat > double.MinValue)
{
Vector3 pos = GetPathPositionFromBeat(path, Math.Max(beat, startBeat), startBeat);