FMOD功能迁移
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user