From bde6db88efd348a1ad7f0cf4b2f7bcb80d707bde Mon Sep 17 00:00:00 2001 From: yangbear Date: Sat, 4 Jul 2026 16:54:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=5FenableOpeningFlow=3Dfalse=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E8=A6=81DeactivateManInjuryChildren+=E7=A7=BB?= =?UTF-8?q?=E5=85=A5RunOpeningFlow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - skip分支加DeactivateManInjuryChildren调用 - 正常流程把清理从PlayOpeningFlow移到RunOpeningFlow(manInjury激活后) - 确保无论是否播开场动画ping都不会残留 --- Assets/Scripts/Animation/OpeningFlowController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Animation/OpeningFlowController.cs b/Assets/Scripts/Animation/OpeningFlowController.cs index 70a4a06..5218621 100644 --- a/Assets/Scripts/Animation/OpeningFlowController.cs +++ b/Assets/Scripts/Animation/OpeningFlowController.cs @@ -97,7 +97,7 @@ public class OpeningFlowController : MonoBehaviour if (_manAnimator != null) _manAnimator.gameObject.SetActive(false); if (_man2Object != null) _man2Object.SetActive(false); if (_womanObject != null) _womanObject.SetActive(true); - if (_manInjuryObject != null) _manInjuryObject.SetActive(true); + if (_manInjuryObject != null) { _manInjuryObject.SetActive(true); DeactivateManInjuryChildren(); } SwitchToCamera2(); onComplete?.Invoke(); return; @@ -148,7 +148,7 @@ public class OpeningFlowController : MonoBehaviour if (_manAnimator != null) { _manAnimator.gameObject.SetActive(false); Debug.Log("[OpeningFlow] man 已隐藏"); } if (_man2Object != null) { _man2Object.SetActive(false); Debug.Log("[OpeningFlow] man2 已隐藏"); } if (_womanObject != null) { _womanObject.SetActive(true); Debug.Log("[OpeningFlow] woman 已显示"); } - if (_manInjuryObject != null) { _manInjuryObject.SetActive(true); Debug.Log("[OpeningFlow] manInjury 已显示"); } + if (_manInjuryObject != null) { _manInjuryObject.SetActive(true); DeactivateManInjuryChildren(); Debug.Log("[OpeningFlow] manInjury 已显示,子级已清理"); } SwitchToCamera2(); yield return new WaitForSeconds(0.3f);