Skip to content

Commit a65daa5

Browse files
committed
Null coroutines after they are finished
1 parent 6323f8f commit a65daa5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Runtime/CinematicBars.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ private IEnumerator Animate(float currentHeight, float desiredHeight)
216216
}
217217

218218
SetDesiredHeight(desiredHeight);
219+
220+
coroutine = null;
219221
}
220222

221223
private float CalculateMatteHeight()

Runtime/Letterboxing.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ private IEnumerator Animate(float currentHeight, float desiredHeight)
152152
}
153153

154154
SetViewportHeight(desiredHeight);
155+
156+
coroutine = null;
155157
}
156158

157159
private float CalculateViewportHeight()

0 commit comments

Comments
 (0)