mikxingu / HexMap_Editor

Unity Game about hexagonal map generation, edition and navigation. This repo has been discontinued and has become Read-Only. Head to the link below to get the last public version.
https://github.com/TechStrikeBrasil/HexMap-Revisited
Other
4 stars 1 forks source link

River Color Bug #9

Closed mikxingu closed 4 years ago

mikxingu commented 4 years ago

There is something wrong with the method that creates rivers. When I try to create a river, it gets created perfectly, but the entire chunk turns to red, and I get an exception saying :

"Mesh.colors is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array."

Something about the color.Color isn't right. I'll see if I can fix it after part 6 is finished.

mikxingu commented 4 years ago

Fixed this editing the color property on HexCell and Hexgrid Chunk.cs files