FMOD功能迁移
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using AibisDream;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using AibisDream.Kit;
|
||||
|
||||
public class Socket : MonoBehaviour, ISocket
|
||||
{
|
||||
@@ -45,7 +46,7 @@ public class Socket : MonoBehaviour, ISocket
|
||||
IsAvailable = false;
|
||||
}
|
||||
|
||||
AudioManager.RandomPlayInteraction("plug_in");
|
||||
FmodManager.Instance.PlaySfx("event:/FollowInput/plugin");
|
||||
plug = p;
|
||||
plug.CableRef.End = plug.transform;
|
||||
// 可插入就可以触发对话
|
||||
@@ -54,7 +55,7 @@ public class Socket : MonoBehaviour, ISocket
|
||||
public void RemovePlug(Plug p)
|
||||
{
|
||||
IsAvailable = true;
|
||||
AudioManager.RandomPlayInteraction("plug_out");
|
||||
FmodManager.Instance.PlaySfx("event:/FollowInput/plugout");
|
||||
if (plug != null)
|
||||
{
|
||||
plug.CableRef.End = plug.transform.GetChild(0).transform;
|
||||
|
||||
Reference in New Issue
Block a user