Workers, lighting, and loading
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
extends Area2D
|
||||
|
||||
signal interacted
|
||||
var player
|
||||
|
||||
func _ready():
|
||||
connect("body_entered", self, "_on_body_enter")
|
||||
@ -8,6 +9,7 @@ func _ready():
|
||||
|
||||
func _on_body_enter(body):
|
||||
if body.has_method("add_interactable"):
|
||||
player = body
|
||||
body.add_interactable(self)
|
||||
|
||||
func _on_body_exit(body):
|
||||
|
Reference in New Issue
Block a user