Is it possible to do a generic GetComponent call that treats all the subclasses the same or do I have to call every subclass by name?
// Main and sub class structure
Event : MonoBehaviour
Choice : Event
Action : Event
// Current Code
obj.GetComponent<Event> (); // ----> Gets Event
obj.GetComponent<Choice> (); // ----> Gets Choice
obj.GetComponent<Action> (); // ----> Gets Action
// Wanted Code
obj.GetComponent <Event> (); // ----> Gets Sub Class
I am just lookin to clean up my code a bit.