Added pickups and doors
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class_name AbstractPickup
|
||||
extends Area2D
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.has_method("add_pickup"):
|
||||
collision_mask = 0
|
||||
body.add_pickup(self)
|
||||
Reference in New Issue
Block a user