15 lines
282 B
GDScript
15 lines
282 B
GDScript
extends Node3D
|
|
|
|
signal cooldown_finished
|
|
|
|
var countdown = 2
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(_delta):
|
|
countdown = countdown - 1
|
|
if countdown == 0:
|
|
visible = false
|
|
set_process(false)
|
|
emit_signal("cooldown_finished")
|