* A translation/code error in the fade method (This is in the UnityScript.js (JS) version only!)
* An architectural problem with complex models (This is in both versions)
One is a C#->JS translation error and is present in the UnityScript.js (JS) version only. I find astounding that neither I nor my play-testers noticed. Objects are not fading in the JS version because of an error in the fade function. This is a simple fix. In "LootableBase.js" change function DestroyFade to this:
Code: Select all
SEE FIX BELOW
The other is a more complicated issue, which is, I need to grab the renderers of the *CHILDREN* in complex models, such as the animated chest. As the LootableObject script is on the Parent Transform containing the 3 models of the animated chest, not on a 3D model itself, I need to be more clever about how I grab the materials for complex objects with family trees.
Give me a moment, and I'll post a fix for this.