Hello People!
I've find a solution to read variable values from a string, but my code does not work... its have error all time, what I'm missing? or What is wrong?
this.GetType(int).GetField("Resource"+LoadedResource).GetValue();
LoadedREsource is a string name, and when i use
Debug.Log("Resource"+LoadedResource)
Is exactly what i need, but this is not the problem, the line remains with the red mark of "incorrect"..
Anny help?
Thanks guys!
↧