In short: I would like to make a function that takes in an instance of a class and accesses it's public variables within the function.
ie
SetName(Player Mchr, string s)
{
Mchr.name = s;
}
I'm not sure what I'm doing wrong, but it seems like the function can't access Mchr.name through Mchr. I'll post my code below in case it's a semantic issue instead of a philosophical one.