Files
Babushka/scripts/CSharp/Common/Audio/AudioPlayer.cs
T

14 lines
294 B
C#
Raw Normal View History

2025-06-15 19:37:57 +02:00
using Godot;
2025-08-27 17:12:12 +02:00
namespace Babushka.scripts.CSharp.Common.Audio;
2025-06-15 19:37:57 +02:00
2025-08-27 17:12:12 +02:00
public partial class AudioPlayer : AudioStreamPlayer
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();
}
}