added project with nerabochie cows
This commit is contained in:
9
scenes/components/collectable_component.gd
Normal file
9
scenes/components/collectable_component.gd
Normal file
@ -0,0 +1,9 @@
|
||||
class_name CollectableComponent
|
||||
extends Area2D
|
||||
|
||||
@export var collectable_name : String
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body is Player:
|
||||
print("Collected")
|
||||
get_parent().queue_free()
|
Reference in New Issue
Block a user