#40 ajout d'un son de clic

This commit is contained in:
2025-08-21 15:28:22 +02:00
parent 22797a9ba3
commit 3bbb1cfcdc
2 changed files with 14 additions and 1 deletions

View File

@@ -3,10 +3,15 @@ extends Node
@export var default_cursor : Texture2D
var inspected_entity : InspectableEntity = null
var player : Player # renseigné par Player
func _ready():
Input.set_custom_mouse_cursor(default_cursor)
func _input(_event):
if Input.is_action_just_pressed("interact"):
$Audio/Click.play()
func _process(_delta):
%Inspector.position = get_viewport().get_mouse_position()
@@ -23,3 +28,4 @@ func stop_inspect_entity(entity : InspectableEntity):
if inspected_entity == entity:
%InspectorText.visible = false
inspected_entity = null