You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
extends Area2D
|
|
|
|
|
|
|
|
@export var target: String = "apparel"
|
|
|
|
|
|
|
|
func _on_area_entered(area):
|
|
|
|
var apparel = area.get_parent()
|
|
|
|
if !apparel.is_in_group(target):
|
|
|
|
return
|
|
|
|
apparel.track = false
|
|
|
|
apparel.global_position = global_position
|
|
|
|
|