immersive-home/addons/godot-xr-tools/misc/vr_common_shader_cache.gd
2023-10-16 19:10:20 +02:00

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")