rj-action-library/Runtime/Actions/Node3D/PlaySound.cs

17 lines
228 B
C#

using Godot;
namespace Rokojori
{
[GlobalClass]
public partial class PlaySound:Action
{
[Export]
public AudioStreamPlayer player;
protected override void _OnTrigger()
{
player.Play();
}
}
}