Access public bool with Type.GetType
Hi. I have class Interaction and some subclasses like Sit : Interaction.
In every subclass I have:
public static bool Requestments () {...}
In my Character script I have string list with name of some subclasses of Interaction.
Question is, is there way to do something like this but working:?
if (Type.GetType(StringList[0]).Requestments())
...
I know I can do something like AddComponent, GetComponent.Requestments and then Destroy, it works, but sounds really stupid.
Ty!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612103204im_/https://answers.unity.com/themes/thub/images/avi.jpg)