brnkhy / MapzenGo

Pokemon Go clone using Unity3D & Mapzen/OpenStreetMap
http://www.barankahyaoglu.com
MIT License
198 stars 59 forks source link

Allow for custom materials on each layer #13

Closed flarb closed 8 years ago

flarb commented 8 years ago

I modified the Factory class to have a material member:

public Material objectMaterial;

And then in each Factory's subclass, I assign that material to the mesh after it's created. I can merge this change in, I suppose. But it's a simple fix to make. That way you can easily change the color of the buildings, water, etc. upon creation.

brnkhy commented 8 years ago

Yea that'll make it easier to use I guess. We also need layer ordering (layer thing is already in the dev branch and coming to master tonite/tomorrow) as well but guess I'll create another issue for that. Thanks man!

brnkhy commented 8 years ago

done in be37aa5b04893a40753ac80791afd950c45b4a04