Closed llafuente closed 9 years ago
Made a bunch of comments in the file change.
I addressed all (no push to not lose comments yet)
But i have a problem with this
If we're going to store this then it needs to be responsive incase the layers change during run time (if some script sets a new staticEnvLayerMask ect...)
When i setup setters/getters the Editor broke. This line causes the problem... any idea ?
if (!_properties[STATIC_ENV_LAYER_MASK.name].hasMultipleDifferentValues && _properties[STATIC_ENV_LAYER_MASK.name].intValue == 0)
There's a couple of ways to accomplish this. You can store the value on Awake and check on FixedUpdate to see if it has changed...or use a setter/getter with a private file that has been tagged with [SerializeField].
I willl try asap, I'm testing windows10 and I think I mess my old HDD... hard days...
I try the SerializeField with no luck, the editor fail... don't know how to properly debug this... so i just switch to the other solution, update @FixedUpdate.
Any more comments?
@cjddmut can you merge this plz.
I have another PR on top of this to add somehting like a plugin to "Grab motors" (boxes ^^)
I will sent it when it's merged and we can discuss if it's acceptable the "pluggin system" I propose.
Sorry about that, will get to it this weekend :)
Merged
Hi @cjddmut
Refactoring staff, mostly to separate motorState from the motor-logic though calling some functions. Also remove unnecessary code and add more delegates.
Any comments ?