Can I get the field name from the parameter? I would like to call the method like CompareValues("points");
public void CompareValues(string field)
{
int value = Card.GetComponent<CardScript>().field;
Can I get the field name from the parameter? I would like to call the method like CompareValues("points");
public void CompareValues(string field)
{
int value = Card.GetComponent<CardScript>().field;