From fb64f15e22acfc1c03c7c5357dd66077454adbcf Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 31 Dec 2020 11:33:12 +0100 Subject: Initial commit --- Objects/Flag.gd | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Objects/Flag.gd (limited to 'Objects/Flag.gd') diff --git a/Objects/Flag.gd b/Objects/Flag.gd new file mode 100644 index 0000000..bdb2237 --- /dev/null +++ b/Objects/Flag.gd @@ -0,0 +1,6 @@ +extends Area2D + + +func _on_Flag_body_entered(body): + body.check_flag() + get_parent().end_level() -- cgit v1.2.3