From fb0a77625a449e920f9050da14b22c00cf8ac9d3 Mon Sep 17 00:00:00 2001 From: yangbear Date: Sun, 12 Jul 2026 06:36:50 +0800 Subject: [PATCH] Cleanup ShoseClickHandler: completely remove audioManager variable that was causing compile error --- Assets/Scripts/Interaction/ShoseClickHandler.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Assets/Scripts/Interaction/ShoseClickHandler.cs b/Assets/Scripts/Interaction/ShoseClickHandler.cs index 19ca35b..389451c 100644 --- a/Assets/Scripts/Interaction/ShoseClickHandler.cs +++ b/Assets/Scripts/Interaction/ShoseClickHandler.cs @@ -138,13 +138,6 @@ public class ShoseClickHandler : MonoBehaviour } } - // 切换到摄像机3(已由 PageController 开场动画结束时完成,此处不再重复触发) - var audioManager = FindObjectOfType(); - if (audioManager != null) - { - // audioManager.SwitchToCamera3(); // 已由开场流程切换,不重复 - } - // 显示 VideoPanel 并播放视频 var uiMgr = FindObjectOfType(); if (uiMgr != null) @@ -166,9 +159,9 @@ public class ShoseClickHandler : MonoBehaviour transform.rotation = _initialRotation; } + // 返回时要隐藏 ping if (nextObject != null) nextObject.SetActive(false); - // --- 恢复相机2、隐藏视频并重新播放语音 --- var uiMgr = FindObjectOfType(); if (uiMgr != null) { @@ -184,7 +177,6 @@ public class ShoseClickHandler : MonoBehaviour { anim.SetBool("isCrouch", false); } - // 还需要把女人放回到 point2 处 var point2 = GameObject.Find("womanPointArray/point2"); if (point2 != null) { @@ -204,7 +196,7 @@ public class ShoseClickHandler : MonoBehaviour } } - // 【关键修复】把原本被隐藏的 touchArray/point3 的边框重新显示出来 + // 重新显示 touchArray/point3 的边框 var touchArray = GameObject.Find("touchArray"); if (touchArray != null) { @@ -221,7 +213,6 @@ public class ShoseClickHandler : MonoBehaviour private System.Collections.IEnumerator ResetCheckFoot(Animator anim) { - // 等待约 3.5 秒(根据实际检查脚动画长度),将 CheckFoot 设回 false yield return new WaitForSeconds(3.5f); if (anim != null) {