Fix final chanrao audio, smooth camera3 transition, show TipPanel for 2s, and play tuoxiezi video

This commit is contained in:
yangbear
2026-07-10 02:51:52 +08:00
parent 193d93f852
commit ec503bd3f1
4 changed files with 83 additions and 4 deletions
+23
View File
@@ -450,12 +450,35 @@ public class PageController : MonoBehaviour
}
Debug.Log($"PageController: 开始等待 {waitTime} 秒以切换摄像机并激活鞋子");
// --- 新增:展示 TipPanel 2秒 ---
var tipPanel = GameObject.Find("TipPanel");
if (tipPanel == null)
{
var allT = Resources.FindObjectsOfTypeAll<Transform>();
foreach(var t in allT) { if (t.name == "TipPanel") { tipPanel = t.gameObject; break; } }
}
if (tipPanel != null)
{
tipPanel.SetActive(true);
// 这里你可以修改 TipPanel 上的文字,如果不修改,它将保持默认内容
// 等待2秒后再隐藏
StartCoroutine(HideTipPanelAfterDelay(tipPanel, 2.0f));
}
// -------------------------------
yield return new WaitForSeconds(waitTime);
// 2. 切换到 camera3
if (am != null) am.SwitchToCamera3();
}
private System.Collections.IEnumerator HideTipPanelAfterDelay(GameObject tipPanel, float delay)
{
yield return new WaitForSeconds(delay);
if (tipPanel != null) tipPanel.SetActive(false);
}
private void HideShose()
{
var shose = GameObject.Find("Shose");