This is something I had to write (to make something work, and it did) and it made me cringe.
string advancement = obj.name == "Player" ? obj.GetComponent<Player>().config.Advancement : obj.GetComponent<Enemy>().config.Advancement;
What I would like to be able to do is something simple like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.