Full controle tactile et souris
This commit is contained in:
@@ -71,17 +71,16 @@ func start_interaction(askingForInteraction: Human):
|
||||
|
||||
func stop_interaction():
|
||||
humanInteractionTarget = null
|
||||
enable_interaction_clue()
|
||||
|
||||
func get_feet_global_position():
|
||||
return global_position + Vector2(0, 43)
|
||||
|
||||
func enable_interaction_clue():
|
||||
func enable_interaction_clue(from: Human):
|
||||
if interactionZone:
|
||||
var mat = $Sprite2D.get("material") as ShaderMaterial
|
||||
if mat:
|
||||
mat.set_shader_parameter("line_thickness", 1)
|
||||
interactionZone.enable_interaction_clue()
|
||||
interactionZone.enable_interaction_clue(from)
|
||||
|
||||
func disable_interaction_clue():
|
||||
if interactionZone:
|
||||
|
||||
Reference in New Issue
Block a user