FMOD功能迁移

This commit is contained in:
2025-03-07 22:28:12 +08:00
parent 99a2e78466
commit dad6c087fd
336 changed files with 1597 additions and 3230 deletions
+4 -3
View File
@@ -4,6 +4,7 @@ using Yarn.Unity;
using System.Collections;
using DG.Tweening;
using AibisDream;
using AibisDream.Kit;
public class WindowManager : MonoBehaviour
{
@@ -30,7 +31,7 @@ public class WindowManager : MonoBehaviour
[YarnCommand("OpenSingleButtonWindow")]
public IEnumerator OpenSingleButtonWindow(string title, string description, bool ispanelActive = true)
{
AudioManager.PlayInteraction("ui");
FmodManager.Instance.PlaySfx("event:/Scriptal/Ui");
bool isConfirmed = false;
singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(ispanelActive);
@@ -49,7 +50,7 @@ public class WindowManager : MonoBehaviour
[YarnCommand("OpenMutiSingleButtonWindow")]
public IEnumerator OpenMutiSingleButtonWindow(string title, string description, int number)
{
AudioManager.PlayInteraction("ui");
FmodManager.Instance.PlaySfx("event:/Scriptal/Ui");
bool isConfirmed = false;
singleButtonWindowPrefab.transform.GetChild(0).gameObject.SetActive(false);
@@ -68,7 +69,7 @@ public class WindowManager : MonoBehaviour
[YarnCommand("OpenProgressWindow")]
public IEnumerator OpenProgressWindow(string title, string description, float duration)
{
AudioManager.PlayInteraction("ui");
FmodManager.Instance.PlaySfx("event:/Scriptal/Ui");
progressWindowPrefab.TitleValue = title;
progressWindowPrefab.DescriptionValue = description;
float currentProgress = 0;