Fix RemoveBlockingOverlay causing transform mutation from disposal threads

This commit is contained in:
Dean Herbert 2021-01-04 17:49:11 +09:00
parent cd7a5ca23a
commit 3b08faa0ea
1 changed files with 2 additions and 2 deletions

View File

@ -151,11 +151,11 @@ public void AddBlockingOverlay(OverlayContainer overlay)
updateBlockingOverlayFade();
}
public void RemoveBlockingOverlay(OverlayContainer overlay)
public void RemoveBlockingOverlay(OverlayContainer overlay) => Schedule(() =>
{
visibleBlockingOverlays.Remove(overlay);
updateBlockingOverlayFade();
}
});
/// <summary>
/// Close all game-wide overlays.