How are we able to change the attributes of that node using the variable we set?
In the lesson titled "Coding the slideshow" in "Learn to code from zero with Godot", we have a slide show, whose child is a VBoxContainer, whose children are a Label and Button node.
To access the button, we set: onready vaar button := $VboxContainer/Button
It's used for connecting the Button node to the Slideshow script and let's us act on when the "pressed" signal is triggered. That makes sense.
But later in the lesson, we program the button's text to change to "Quit" when on the last slide.
We do this with the code: if current_slide == last_slide, button.text = "Quit".
My understanding is that this will only effect our local variable defined in the Slideshow's script.
I don't understand how this variable we set within the script is making changes to the Button child node directly.