Closed kazusaki1 closed 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.
As discussed over Slack with @sdiaz7, the upgrade process will happen like so:
public GameObject upgrade
field, wherein the next prefab in the line of upgrades will be linked via drag-n-drop.
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.
From left to right: torre-piedra (wood), torre-piedra-2 (clay), torre-piedra-3 (stone)
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