context menu added
player can find food and eat it
This commit is contained in:
@@ -112,12 +112,11 @@ func drop_item():
|
||||
|
||||
func _on_item_received():
|
||||
if holdingItem != null:
|
||||
pass
|
||||
#holdingItem.use()
|
||||
if target_action == "eat" and holdingItem.name == "food":
|
||||
holdingItem.use()
|
||||
print("I ate it")
|
||||
|
||||
|
||||
func _on_input_event(camera: Node, event: InputEvent, event_position: Vector3, normal: Vector3, shape_idx: int) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_mouse_entered() -> void:
|
||||
|
||||
Reference in New Issue
Block a user