summaryrefslogtreecommitdiff
path: root/Stages/Goal/goal.gd
blob: 6854d7ac77927963e90ac65b1428d58f144dbdf9 (plain)
1
2
3
4
5
6
7
8
9
10
extends Node2D


func _ready() -> void:
	$AnimatedSprite2D.play("default")


func _on_area_2d_body_entered(body: Node2D) -> void:
	if body is Unit:
		body.enter_goal($GoalCenter.global_position)