From bc052256861c6f81fee12365aaa8814a308e2ca2 Mon Sep 17 00:00:00 2001 From: bottlefish <781230111@qq.com> Date: Mon, 30 Dec 2024 23:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9F=B3=E9=A2=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/SystemWindow/WindowManager.cs | 5 ++--- Assets/Scripts/Task/TaskManager.cs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/SystemWindow/WindowManager.cs b/Assets/Scripts/SystemWindow/WindowManager.cs index 805c219dc..20f09384f 100644 --- a/Assets/Scripts/SystemWindow/WindowManager.cs +++ b/Assets/Scripts/SystemWindow/WindowManager.cs @@ -27,11 +27,10 @@ public class WindowManager : MonoBehaviour Instance = this; DontDestroyOnLoad(gameObject); // 如果需要全局保留 } - [YarnCommand("OpenSingleButtonWindow")] public IEnumerator OpenSingleButtonWindow(string title, string description, bool ispanelActive = true) { - AudioManager.PlayMemoryAudio("ui"); + AudioManager.PlayInteraction("ui"); bool isConfirmed = false; singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(ispanelActive); @@ -50,7 +49,7 @@ public class WindowManager : MonoBehaviour [YarnCommand("OpenMutiSingleButtonWindow")] public IEnumerator OpenMutiSingleButtonWindow(string title, string description, int number) { - AudioManager.PlayMemoryAudio("ui"); + AudioManager.PlayInteraction("ui"); bool isConfirmed = false; singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(false); diff --git a/Assets/Scripts/Task/TaskManager.cs b/Assets/Scripts/Task/TaskManager.cs index 7e3d24c2e..3552d6db6 100644 --- a/Assets/Scripts/Task/TaskManager.cs +++ b/Assets/Scripts/Task/TaskManager.cs @@ -40,7 +40,7 @@ public class TaskManager : MonoBehaviour [YarnCommand("task_moveIn")] public void Task_moveIn() { - AudioManager.PlayMemoryAudio("task_inout"); + AudioManager.PlayInteraction("task_inout"); pos.DOAnchorPosY(-170f,1f); } @@ -48,7 +48,7 @@ public class TaskManager : MonoBehaviour [YarnCommand("task_moveOut")] public void Task_moveOut() { - AudioManager.PlayMemoryAudio("task_inout"); + AudioManager.PlayInteraction("task_inout"); pos.DOAnchorPosY(175,1f); }