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
@@ -1,4 +1,5 @@
using AibisDream.Framework;
using AibisDream.Kit;
using AibisDream.Utility;
using DG.Tweening;
using MeadowGames.UINodeConnect4.GraphicRenderer;
@@ -73,7 +74,7 @@ namespace AibisDream.FixSystem
// 处理插槽插入
targetSocket.PlugIn();
AudioManager.RandomPlayInteraction("plug_in");
FmodManager.Instance.PlaySfx("event:/FollowInput/plugin");
_sprite.enabled = false;
_cableSystem.curSocket = targetSocket;
@@ -94,10 +95,10 @@ namespace AibisDream.FixSystem
_cableSystem.CableRef.SetEndPos(_plugRootPos);
_cableSystem.curSocket?.PlugOut();
AudioManager.RandomPlayInteraction("plug_out");
FmodManager.Instance.PlaySfx("event:/FollowInput/plugout");
_sprite.enabled = true;
if (_cableSystem.curSocket is BodyModule bodyModule)
if (_cableSystem.curSocket is BodyModule)
{
// 从模块拔出时触发事件
EnumEventSystem.Global.Send(EventEnum.PlugOut);
@@ -6,6 +6,7 @@ using AibisDream.FixSystem;
using UnityEngine.UI;
using Unity.VisualScripting;
using AibisDream;
using AibisDream.Kit;
public class PunchTapeSystem : MonoBehaviour
{
@@ -47,7 +48,7 @@ public class PunchTapeSystem : MonoBehaviour
{
// Move the printer to x = 2 over 1 second
yield return punchTapeMachine.DOAnchorPos(new Vector2(-1252f, punchTapeMachine.anchoredPosition.y), 1f).WaitForCompletion();
AudioManager.RandomPlayInteraction("typing");
FmodManager.Instance.PlaySfx("event:/Scriptal/typing");
// Gradually move the punch tape to x = -3.8 with rhythmic pattern
Vector2 targetPosition = new Vector2(796f, punchTape.anchoredPosition.y);
int patternIndex = 0;