Skip to content

Commit

Permalink
fix: undo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yy4382 committed Mar 28, 2024
1 parent e440f11 commit 088a918
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Assets/Scripts/IterationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ IEnumerator DelayBeforeRemoveObjects(float delay)

void IterationCompleted(bool isUndo = false)
{
IterStarted = false;
iterationCompleted = true;
UpdateCharacterMoveState(false);
StopRunningAnim();
Expand Down Expand Up @@ -277,7 +276,7 @@ void StartIteration()

void BackIteration()
{
if (IterStarted)
if (IterStarted && !isWaitingDelayBeforeRemoveObjects)
{
IterationCompleted(true);
if (levelCompleted)
Expand All @@ -300,7 +299,6 @@ void BackIteration()
if (!levelCompleted)
{
currentIteration--;
Debug.Log("currentIteration: " + currentIteration);
}
levelCompleted = false;
if (IsHeroIteration)
Expand Down

0 comments on commit 088a918

Please sign in to comment.