fix(ui): 修复场景卸载后透明遮罩阻塞交互
This commit is contained in:
@@ -246,8 +246,15 @@ namespace AibisDream.UI
|
||||
{
|
||||
_timeFlowsVersion++;
|
||||
|
||||
_fullScreenImage.FadeOut(0.1f);
|
||||
_showObjImage.FadeOut(0.1f);
|
||||
// SceneLoader unloads scenes with DOTween.KillAll(). Do not rely on a
|
||||
// tween completion callback to deactivate these raycast targets: if
|
||||
// that tween is killed, an invisible full-screen image blocks the UI.
|
||||
_fullScreenImage.DOKill();
|
||||
_fullScreenImage.color = Color.clear;
|
||||
_fullScreenImage.gameObject.SetActive(false);
|
||||
|
||||
_showObjImage.DOKill();
|
||||
_showObjImage.color = Color.clear;
|
||||
_showObjPanel.SetActive(false);
|
||||
|
||||
_timeTurner.ForceStop();
|
||||
@@ -299,4 +306,4 @@ namespace AibisDream.UI
|
||||
yield return new WaitUntil(() => !_warningWindow.gameObject.activeSelf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user