what scripts I have:
StatesTemplate class file deriving from scriptable object with a string called locationName that I assigned the string: “dd”
MainScript with a statement that concatenates the location name.
it will store the concatenated string into a variable called text.
problem:
when I check to see what is inside text, I see that the location name is missing.
Then I found this:
“In a deployed build, however, you can’t use ScriptableObjects to save data, but you can use the saved data from the ScriptableObject Assets that you set up during development.” - Manual
I am doing this to try a different method of writing out player choices.
so for my game
it will have different locations
Each location can have different states
I am doing this so I don’t have to type out
press 1 to go to main street every time?
instead I can just do
press 1 to go to
my question:
So I cannot initialize and assign data to variables inside the scripts of scriptable objects?
Is this the issue or am I doing something else wrong?
Do you guys have any suggestions on how I can let the computer write out the next location the player will go for me?
Thank You!!