I have this class:
public class Person
{
public String name;
public int score;
public float multiplier;
public Person(String nameID)
{
name = nameID;
score = 0;
multiplier = 1.0f;
}
}
And I have a List containing these classes:
private List<Person> _people;
Is there some way I could get a score using a name, like this?
_people.GetScore("example name"); // return the score of the class containing that name?