im making a project for listening to episodes of a podcast (the magnus archives) as if they're real cassettes. The idea is that some info about the episode shown on the cassette model + it's audio file are stored in a class, then before putting the cassette in the player, being able to change the class resource the cassette takes from with buttons. My problem is that it doesnt let me change it on runtime, just set it on the ready function.
The way the cassette script loads the data:
onready var data = preload("res://MAGs/Season1/Ep1.tres")
The way im trying to change it:
data = load(<different cassette's data>)
I apologize for if im making a dumb mistake, ive barely worked with classes. Also if its impossible to change it on runtime, what should i use instead to save the data in?