I don’t have the code on me so I might of typed something weird but heres an example.
public SpecialPeople sPep;
public Text blahText;
public enum SpecialPeople
{
Bob,
Mario,
Dude,
Ect.....
}
void Update ()
{
If (blahText.text == sPep.ToString())
{
//SomethingHappens
}
}
Whats happening is when I do the ToString () it only works for the first one on the enum list. Now I could go through and do SpecialPeople. And then the name but if I have a lot of names on the list then I have to add each and everyone of the names. That would be harder not smarter. Let me know if you know any alternate things I could do to accomplish this task. Thanks in advance!