File size: 197 Bytes
da17ede
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extends Area3D
class_name Goal

signal ball_entered(goal: Goal)


func _ready():
	connect("body_entered", on_body_entered)


func on_body_entered(body):
	if body is Ball:
		ball_entered.emit(self)