From 64675fc56a875dfc17883d96f19408083cc47b18 Mon Sep 17 00:00:00 2001 From: yangbear Date: Mon, 29 Jun 2026 20:37:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=91=94=E5=80=92=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E5=90=8E=E5=A2=9E=E5=8A=A0=E5=81=9C=E7=95=99=E7=BC=93=E5=86=B2?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E5=8A=A8=E4=BD=9C=E6=9C=AA=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=B0=B1=E9=BB=91=E5=B9=95=E8=BD=AC=E5=9C=BA\n\n-=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=5FfallHoldDuration=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=EF=BC=88=E9=BB=98=E8=AE=A41.5s=EF=BC=89=EF=BC=8CInspector=20?= =?UTF-8?q?=E5=8F=AF=E8=B0=83\n-=20Step3=20manfull=202.1s=20=E6=92=AD?= =?UTF-8?q?=E5=AE=8C=E5=90=8E=20wait=20=5FfallHoldDuration=20=E5=86=8D?= =?UTF-8?q?=E8=BF=9B=E9=BB=91=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Animation/OpeningFlowController.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Animation/OpeningFlowController.cs b/Assets/Scripts/Animation/OpeningFlowController.cs index 559ba9d..9e99d0d 100644 --- a/Assets/Scripts/Animation/OpeningFlowController.cs +++ b/Assets/Scripts/Animation/OpeningFlowController.cs @@ -91,7 +91,6 @@ public class OpeningFlowController : MonoBehaviour yield return new WaitForSeconds(_idleDuration); // Step 2: man 投篮动画 Shoot (3.15s) - // 先确保 IsFull=false(因为 Idle→Shoot 过渡条件需要 IsFull=false) Debug.Log("[OpeningFlow] Step2: man Shoot 动画开始"); if (_manAnimator != null) { @@ -107,14 +106,20 @@ public class OpeningFlowController : MonoBehaviour Debug.LogWarning("[OpeningFlow] _manAnimator 为空,跳过 Step2"); } - // Step 3: man 摔倒动画 manfull (2.1s) + // Step 3: man 摔倒动画 manfull,等待动画播完 + 停留缓冲 Debug.Log("[OpeningFlow] Step3: man Fall 动画开始"); if (_manAnimator != null) { _manAnimator.SetBool("IsFull", true); Debug.Log("[OpeningFlow] man IsFull=true, 触发 manfull"); + + // 等待 manfull 动画播放完成(2.1s) yield return new WaitForSeconds(2.1f); Debug.Log("[OpeningFlow] Step3: man Fall 动画结束"); + + // 摔倒后停留缓冲,让玩家看清摔倒结果 + Debug.Log($"[OpeningFlow] Step3: 摔倒后停留缓冲 {_fallHoldDuration}s"); + yield return new WaitForSeconds(_fallHoldDuration); } else { @@ -196,4 +201,7 @@ public class OpeningFlowController : MonoBehaviour if (toAlpha <= 0.01f) _blackScreenPanel.SetActive(false); } + + + [SerializeField] private float _fallHoldDuration = 1.5f; }