28 lines
579 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
|