Hello,
Let’s say that I have one variable that is equal to the name of the GameObject that the script is attached to. I have a static variable that is declared elsewhere. I want to find the static variable that has the same name as the string stored in my first variable. How can this be done?
I want it so that I can have one script manage all of my text elements. I want “PerkName1” to change its text to the string value of the static variable “PerkName1”. If anyone has a better idea than storing the name of the Text element as a variable, please enlighten me.