You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
296 B
14 lines
296 B
|
7 months ago
|
using Godot;
|
||
|
|
|
||
|
|
namespace Babushka.scripts.CSharp.Common;
|
||
|
|
|
||
|
5 months ago
|
public partial class AudioPlayer2D : AudioStreamPlayer2D
|
||
|
7 months ago
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// For SFX and other audio that should be played only once and not looped.
|
||
|
|
/// </summary>
|
||
|
|
public void PlayOneShot()
|
||
|
|
{
|
||
|
|
Play();
|
||
|
|
}
|
||
|
|
}
|