15 lines
282 B
GDScript3
15 lines
282 B
GDScript3
|
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")
|