IndieGame/client/Assets/Scripts/ThridParty/NodeCanvasExtension/ActionTask/PlayAudio.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

28 lines
579 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Ether;
namespace NodeCanvas.Tasks.Actions
{
[Category("扩展/播放音效")]
[Description("播放音效")]
[Name("播放音效")]
public class PlayAudio : ActionTask
{
[BlackboardOnly]
public string audioName;
protected override void OnExecute()
{
AudioManager.Inst.PlayEffectAudio(audioName);
EndAction();
}
}
}