I have a class called Receive and it has a variable public int head=10 for example.
In a different class called Mover I will set a new variable private Receive bodypart.
What I want is to take the value of head of bodypart without using the command bodypart.head but with a string, for example:
string bodyname = "head";
int v = bodypart.bodyname;
I know that this doesn't work and why but I can't find another method. I already look for reflection but didn't get it and don't know if it's the best for this.