Cleanup ShoseClickHandler: completely remove audioManager variable that was causing compile error
This commit is contained in:
@@ -138,13 +138,6 @@ public class ShoseClickHandler : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
// 切换到摄像机3(已由 PageController 开场动画结束时完成,此处不再重复触发)
|
||||
var audioManager = FindObjectOfType<AudioManager>();
|
||||
if (audioManager != null)
|
||||
{
|
||||
// audioManager.SwitchToCamera3(); // 已由开场流程切换,不重复
|
||||
}
|
||||
|
||||
// 显示 VideoPanel 并播放视频
|
||||
var uiMgr = FindObjectOfType<UIManager>();
|
||||
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<UIManager>();
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user