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