This commit is contained in:
2025-01-18 15:45:09 +01:00
parent f1bfb48fcf
commit 114e09172f
6 changed files with 94 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float)-> void:
if (in_player and Input.is_action_just_pressed("interact")):
player.call("drink")
@@ -18,6 +18,7 @@ func _on_area_3d_body_entered(body: Node3D) -> void:
if (body is CharacterBody3D):
in_player = true
player = body
player.call("display_drink")
func _on_area_3d_body_exited(body: Node3D) -> void: