Cleaned and improved some event stuff
This commit is contained in:
@@ -22,11 +22,9 @@ func onEntityInteract(
|
||||
interactor:EntityInteractor,
|
||||
interactee:EntityInteractable
|
||||
) -> void:
|
||||
print("Interact?")
|
||||
var event = EventGetItem.new()
|
||||
event.itemType = itemType;
|
||||
event.quantity = quantity;
|
||||
event.removeNode = self
|
||||
EVENT.addEvent(event)
|
||||
event.onEntityInteract(interactor, interactee)
|
||||
|
||||
get_parent().remove_child(self)
|
||||
self.queue_free()
|
Reference in New Issue
Block a user