shine-runners-test/shiny.gd

10 lines
138 B
GDScript3
Raw Normal View History

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