added timeout to broken objects
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
extends Node3D
|
||||
|
||||
@export var timer : Node
|
||||
@export var sound : Node
|
||||
@export var pitch_scale_amt = .5
|
||||
|
||||
@@ -14,3 +15,7 @@ func _ready():
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
|
||||
func _on_timer_timeout():
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user