clean up file structure
This commit is contained in:
parent
1318fdd9fc
commit
324e7d437b
28 changed files with 102 additions and 125 deletions
8
utils/lifetime/lifetime.gd
Normal file
8
utils/lifetime/lifetime.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
@export var duration := 10.
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
duration -= delta
|
||||
if duration <= 0:
|
||||
get_parent().queue_free()
|
||||
1
utils/lifetime/lifetime.gd.uid
Normal file
1
utils/lifetime/lifetime.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cw8yt6b6jo17n
|
||||
6
utils/lifetime/lifetime.tscn
Normal file
6
utils/lifetime/lifetime.tscn
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_scene format=3 uid="uid://yri7p15m8l1u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cw8yt6b6jo17n" path="res://utils/lifetime/lifetime.gd" id="1_4m2ci"]
|
||||
|
||||
[node name="Lifetime" type="Node" unique_id=631221358]
|
||||
script = ExtResource("1_4m2ci")
|
||||
Loading…
Add table
Add a link
Reference in a new issue