[Bug] Fix the issue with input being blocked after missed camera sequence

This commit is contained in:
Michal Pikulski
2025-10-14 11:48:19 +02:00
parent 9c44a0c91f
commit 21bec076a9

View File

@@ -456,6 +456,8 @@ namespace Minigames.DivingForPictures.PictureCamera
{
if (viewfinderInstance != null)
{
viewfinderComponent.RemoveInputOverride();
// Unsubscribe from all viewfinder events
if (viewfinderComponent != null)
{
@@ -785,7 +787,6 @@ namespace Minigames.DivingForPictures.PictureCamera
isReversePhase = false;
// Hide the viewfinder on the second tap
viewfinderComponent.RemoveInputOverride();
HideViewfinder();
}
else
@@ -860,12 +861,6 @@ namespace Minigames.DivingForPictures.PictureCamera
OnAnimationCompleted?.Invoke();
isAnimating = false;
isReversePhase = false;
// Hide the viewfinder
if (viewfinderComponent != null)
{
viewfinderComponent.RemoveInputOverride();
}
HideViewfinder();
}
}