Closed sdiaz7 closed 7 years ago
Sin el -1 he comprobado que pasa por todos los mesh:
Así que con esa pequeña modificación por mi parte se puede integrar.
Si, yo también acabo de comprobarlo. Acabo de subir el fix. Gracias por avisar!
Por mi parte como dije todo perfect, hago merge
@kazusaki1 veig que vas comentar:
Solo veo un pequeño fallo, modifica está linea:
I a continuació vas adjuntar una captura de pantalla.
Saps que es pot fer més fàcil, posant comentaris a les línes del codi directament? Vas al commit i allà escrius apretant el signe +. Acabo de fer la prova a https://github.com/NestorTejero/ES2016A/pull/251/commits/8d5ef99c209b0fe39e1f2c2a681ef27850a2129a
See issue #172 for implementation details.
Basically, the redefined HomeBehavior allows for N meshes to be assigned to the prefab through the Inspector (variable named threshold Meshes). The script then defines N damage thesholds, and changes home's mesh once a threshold is reached. I've decided to work with meshes rather than objects because it's much more simplier provided all the meshes are about the same size. Changing the mesh does not change the material. If that proves to be a problem, material can be changed just as easily as mesh.
Recommendations for testing: