Skip to content

Commit 819c4c7

Browse files
committed
Prevent Movement of character during completed UI
1 parent 408180e commit 819c4c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CustomLevels/data/CustomLevelCompleteUI.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class CustomLevelCompleteUI : MonoBehaviour
1515
public static void Show()
1616
{
1717
UIManager.isMenuMoving = true;
18+
LevelAnimation.isLevelLoading = true;
1819
if (UIManager.currentLayer == null)
1920
{
2021
Debug.LogWarning("No active UI layer found.");
@@ -234,6 +235,7 @@ GameObject CreateButton(string label, float yOffset, UnityEngine.Events.UnityAct
234235
Destroy(blocker);
235236
UIManager.currentLayer = UIManager.instance.sandboxLayer;
236237
UIManager.isMenuMoving = false;
238+
LevelAnimation.isLevelLoading = false;
237239
});
238240

239241
CreateButton("Cancel", -120f, () =>
@@ -242,6 +244,7 @@ GameObject CreateButton(string label, float yOffset, UnityEngine.Events.UnityAct
242244
Destroy(blocker);
243245
UIManager.currentLayer = UIManager.instance.sandboxLayer;
244246
UIManager.isMenuMoving = false;
247+
LevelAnimation.isLevelLoading = false;
245248
});
246249
}
247250
}

0 commit comments

Comments
 (0)