shine-runners-test/shiny.gd

10 lines
139 B
GDScript3
Raw Normal View History

2025-04-20 16:15:26 +10:00
extends RigidBody2D
func _on_body_entered(body: Player) -> void:
print(body.name)
if body is Player:
body.score += 1
queue_free()