mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 05:52:24 +02:00
Minor Cleanup
- Renamed SoundController - Cleaned up spacings - File endings
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
extends Node2D
|
||||
|
||||
var CHANNEL = 2
|
||||
#one sound will be chosen at random
|
||||
export var SoundLibary :PoolStringArray=[]
|
||||
|
||||
|
||||
# One walk sound will be chosen at random
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
var sound = SoundLibary[rand_range(0,SoundLibary.size())]
|
||||
SoundControler.pub_play_effect(sound,CHANNEL)
|
||||
|
||||
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user