1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00
swear-jar/collector/collectible.gd

23 lines
278 B
GDScript

extends Node
class_name Collectible
enum CollectibleType {
UNSET,
COIN_COPPER,
COIN_SILVER,
COIN_GOLD,
GEM,
DIAMOND,
COAL,
CROWN,
SUPERCROWN,
}
@export var type: CollectibleType
signal collected
func collect():
emit_signal("collected")
get_parent().queue_free()