Skip to content

Commit 6392942

Browse files
committed
モーダルバックドロップの破棄処理がおかしかったのを修正
1 parent 4bb66fc commit 6392942

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Assets/UnityScreenNavigator/Runtime/Core/Modal/ModalLifecycleHandler.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ public IEnumerator Pop(ModalPopContext context, bool playAnimation)
110110
while (!handle.IsTerminated)
111111
yield return handle;
112112

113-
_backdropHandler.AfterModalExit(context.FirstExitModal, context.FirstExitModalIndex, playAnimation);
113+
for (var i = 0; i < context.ExitModals.Count; i++)
114+
{
115+
var exitModal = context.ExitModals[i];
116+
var exitModalIndex = context.ExitModalIndices[i];
117+
_backdropHandler.AfterModalExit(exitModal, exitModalIndex, playAnimation);
118+
}
114119
}
115120

116121
public void AfterPop(ModalPopContext context)

0 commit comments

Comments
 (0)