aboutsummaryrefslogtreecommitdiffstats
path: root/Coin.gd
blob: 2f5402d7e0d66038a50b77c8e92b89e25725c9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extends StaticBody2D

var timer

func _ready():
	timer = Timer.new()
	get_parent().add_child(timer)
	timer.one_shot = true
	timer.connect("timeout", self, "_on_timer_timeout")
	timer.start(5.0)

func _on_timer_timeout() -> void:
	queue_free()