Most of prototype! yay
This commit is contained in:
10
common/interactable_body.gd
Normal file
10
common/interactable_body.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends StaticBody2D
|
||||
class_name InteractableBody
|
||||
|
||||
var parent: Interactable
|
||||
|
||||
func _ready() -> void:
|
||||
parent = get_parent()
|
||||
|
||||
func interact(player: Player):
|
||||
parent.interact(player)
|
||||
Reference in New Issue
Block a user