Files

14 lines
296 B
C#
Raw Permalink Normal View History

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