This commit is contained in:
2024-01-26 00:00:07 +01:00
parent 0d2e01073c
commit bb763ea4e2
140 changed files with 30775 additions and 296 deletions

12
scripts/sound_effect.gd Normal file
View File

@@ -0,0 +1,12 @@
extends AudioStreamPlayer
class_name SoundEffect
@export var audio_library: Array[SoundeffectResource]
func play_key(key: String) -> void:
for res in audio_library:
if res.key == key:
stream = res.audio
play()
return
push_error(key + " is not available in the Audio Library variable")