修复音频错误

This commit is contained in:
2024-12-30 23:42:25 +08:00
parent e795fb4917
commit bc05225686
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -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);