Recreation Improvement Stack Change is a query and reply website for skilled and impartial sport builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The most effective solutions are voted up and rise to the highest
Requested
Seen
21 occasions
I’ve 4 GameObjects, a personality controller script, an enemy supervisor script, and a injury system script that I might reuse for a number of totally different conditions in the identical means for every. Presently I put all these references right into a static class that acts as a wrapper for these mentioned variables however one thing like that is unhealthy apply. On the identical time, I do not wish to resort to serializing a bunch of fields within the inspector for every of these conditions. Would there be a greater method to this?
$endgroup$
3
Scriptable objects are a superb answer for storing units of grouped knowledge that should be referenced in a number of spots. Be aware that scriptable objects are solely actually good for values that change throughout edit time. They aren’t nicely fitted to values that change at runtime.
$endgroup$
2
It’s essential to log in to reply this query.
Not the reply you are in search of? Browse different questions tagged unity .
lang-cs