Implemented most sounds (Missing Boss and Hero Laught))

This commit is contained in:
Jan Schuffenhauer
2020-04-20 23:20:30 +02:00
parent 1299860e1f
commit 723b765b3e
45 changed files with 466 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
extends Node2D
var CHANNEL = 2
#one sound will be chosen at random
export var SoundLibary :PoolStringArray=[]
func _on_Hurtbox_area_entered(area):
var sound = SoundLibary[rand_range(0,SoundLibary.size())]
SoundControler.pub_play_effect(sound,CHANNEL)
queue_free()