I am currently working on an abstract container class in C# that I want to be able to hold scripts (similar to here), but I want the holder to know what the list is holding so that it can call the functions as needed. additionally I want the script being added to the list to be like an individual script on the object instead of an instance of the original script in question so that inspector modifications can be made to it. would this already happen, or do I need to change approaches?
does it make any difference that I am essentially making an abstract base class
to hold abstract base class
es. technically these containers will be held by a controller, and such (references at least), but I don’t think that will cause any issues.
EDIT: to more clarify the question. I want to be able to add scripts to the entity’s serialized list(s)
(in the inspector), but still be able to treat them like scripts on the object (being able to modify values based on the given entity), or would it be better to simply place them as script components, and adding them to the list(s) through transform.parent.GetComponent
instead?