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