immersive-home/app/addons/godot-xr-tools/misc/vr_common_shader_cache.gd
2024-03-16 01:16:08 +01: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")