I have a fairly sizable number of bullets in my game. Some will do things like seek the player out, some will do other things, but all of them will have a set of properties(speed, power, boolean(isPiercing), etc.)
My OOP-fu is a little weak, but I’ve wondered if inheritance might be the way to go. I’m not entirely sure how inheritance works with Unity, though.
I suppose I could make one script containing all of the variables, and assign them to each bullet prefab I have, and have all of their behavior scripts reference the other script attached to the object, but that seems like a really awkward and wasteful way of doing it. Is there a better way to do this using inheritance, or something else I might not be aware of?
Note: Currently using UnityScript as my language.