fix: resolve Next/Previous step and UI skipping bugs
This commit is contained in:
@@ -61,6 +61,10 @@ public class OpeningFlowController : MonoBehaviour
|
||||
if (_womanObject == null) _womanObject = GameObject.Find("woman");
|
||||
if (_manInjuryObject == null) _manInjuryObject = GameObject.Find("manInjury");
|
||||
|
||||
// 确保开场时隐藏 Shose
|
||||
var shose = GameObject.Find("Shose");
|
||||
if (shose != null) shose.SetActive(false);
|
||||
|
||||
if (_blackScreenPanel == null)
|
||||
_blackScreenPanel = GameObject.Find("BlackScreenPanel");
|
||||
if (_blackScreenPanel == null)
|
||||
@@ -90,6 +94,10 @@ public class OpeningFlowController : MonoBehaviour
|
||||
{
|
||||
Debug.Log($"[OpeningFlow] PlayOpeningFlow() 被调用, enable={_enableOpeningFlow}");
|
||||
|
||||
// 再次确保开场隐藏鞋子
|
||||
var shose = GameObject.Find("Shose");
|
||||
if (shose != null) shose.SetActive(false);
|
||||
|
||||
if (!_enableOpeningFlow)
|
||||
{
|
||||
Debug.Log("[OpeningFlow] 开场动画已禁用,直接跳过");
|
||||
@@ -136,9 +144,9 @@ public class OpeningFlowController : MonoBehaviour
|
||||
|
||||
// Step 3: 摔倒 + manCall 音效
|
||||
Debug.Log("[OpeningFlow] Step3: manfull 开始");
|
||||
if (AudioManager.I != null) AudioManager.I.PlayManCallSfx();
|
||||
if (_manAnimator != null) { _manAnimator.Play("manfull", 0, 0f); }
|
||||
yield return new WaitForSeconds(2.1f);
|
||||
if (AudioManager.I != null) AudioManager.I.PlayManCallSfx();
|
||||
Debug.Log("[OpeningFlow] manfull 播放完成, 停留 2s");
|
||||
yield return new WaitForSeconds(2f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user