11 lines
169 B
GDScript3
11 lines
169 B
GDScript3
|
|
extends Node3D
|
||
|
|
|
||
|
|
@onready var timer : Timer = $Timer
|
||
|
|
var duration : float
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
timer.start(duration)
|
||
|
|
|
||
|
|
func _on_timer_timeout() -> void:
|
||
|
|
queue_free()
|