Files

14 lines
294 B
C#
Raw Permalink Normal View History

2025-06-15 19:37:57 +02:00
using Godot;
namespace Babushka.scripts.CSharp.Common;
public partial class AudioPlayer : AudioStreamPlayer2D
{
/// <summary>
/// For SFX and other audio that should be played only once and not looped.
/// </summary>
public void PlayOneShot()
{
Play();
}
}