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 RigidBody2D
|
|
|
|
signal attack
|
|
signal hit
|
|
@onready var Cupcakes = $"../Cupcakes"
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("Horse"):
|
|
emit_signal("attack")
|
|
elif body.is_inside_tree(Cupcakes):
|
|
emit_signal("hit")
|