I have a class inside a class. I would like the inner class to be able to access functions from the outer class. Something like what's below:
@onready var my_label = $MarginContainer/Panel/Label
func display_text(text: String):
my_label.set_text(text)
class DialogueSession
var num = 1
func show_next():
display_text("the next number is:" + num++)
I get the error:
Error: Function display_text() not found in base self
How can I achieve this code structuring?