- Home /
Scripting Generic stat modifiers.
I'm a bit out of practice when it comes to generics, but I've got a system in mind that could make my life much, much easier.
I've got some various stats on my objects of different types; some ints, some floats, some vectors. I'd like each stat to have a list of modifiers, like buffs, which can be plugged in or out, and even be discounted entirely when the modifying object is missing.
These modifiers would have an object reference of some sort and a value.
That value is the bothersome part, since my various stats can be different types.
Can someone point me in the right direction for this?
Comment
Your answer
Follow this Question
Related Questions
Passing Type variable to generic type: Variable not found. 1 Answer
Speech Recognition Unity Pro 2 Answers
Generic function does not work... 1 Answer