immersive-home/addons/godot-xr-tools/misc/vr_common_shader_cache.gd

15 lines
282 B
GDScript3
Raw Normal View History

2023-10-16 20:10:20 +03:00
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")