NestorTejero / ES2016A

VideoJoc Curs Enginyeria Software 2016 - grup A de pràctiques (dijous)
https://nestortejero.github.io/ES2016A/
GNU General Public License v3.0
2 stars 0 forks source link

Change tower texture or model on upgrade. #240

Closed kazusaki1 closed 7 years ago

kazusaki1 commented 7 years ago

Definition of Done

Branches:

Final pull request will be merging dev_Issue240 into DEV.

Estimated time: 2 hours (for scripting and prefab assignation)

Pull request: #294

sdiaz7 commented 7 years ago

Para esta issue creo que bastará con crear nuevos prefabs, uno por nivel de upgrade, que puedan instanciarse cuando se haga una mejora. La idea seria "clonar" el estado de la torre antigua en la torre nueva, y eliminar la antigua después de haber puesto la nueva en escena.

Nerucius commented 7 years ago

As discussed over Slack with @sdiaz7, the upgrade process will happen like so:

sdiaz7 commented 7 years ago

Current script allows towers to be upgraded if they have an upgraded tower GameObject assigned. The script supports both upgrading by using the stats in the GameObject and by using the stats in towers.xml. I recommend the later for game balancing purposes.

sdiaz7 commented 7 years ago

From left to right: torre-piedra (wood), torre-piedra-2 (clay), torre-piedra-3 (stone) image