6 lines
119 B
GDScript
6 lines
119 B
GDScript
extends Area2D
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("Player"):
|
|
body.SetPowerUp(0);
|
|
self.queue_free()
|