fix: remove the whitespaces and clean up;
This commit is contained in:
@@ -3,7 +3,6 @@ extends StaticBody2D
|
||||
@export var dialogue_lines: Array[String] = ["Hello!", "Good day to you!", "Welcome!"]
|
||||
var can_interact: bool = false
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_just_pressed("Interact") and can_interact:
|
||||
$CanvasLayer/DialogLabel.text = dialogue_lines[randi_range(0, 2)]
|
||||
|
||||
Reference in New Issue
Block a user