I need help, been stuck on this for over 7 days now.
I want to create a tower defense game garden-themed where instead of upgrading the towers, you have a bunch of seeds (in this specific example, flower seeds) and you use them to grow seedlings in a flower pot (taking x time to create) and then dragging and dropping them on a Tower_Zone object on the map. The Tower_Zone object is the Tower itself that has different levels, animations (sunflower_tower_animation, tomato_tower_animation) experience points, dmg, dropping system, and so on. Every time a tower gets at a specific level, the tower can be collected to receive seeds for future tower creations and fruits for winning conditions.
I want each instance of the tower to have its own experience points, dmg, level, attack speed, animations, and so on.
This is where I want help, I do not know how to create unique IDs or instances so each tower has its own life cycle every time it’s created.
I am in the current situation when a tower kills a monster, the experience points are the same for all towers, when I collect a tower, other towers are collected, and when I try to replant another tower at the same tower zone, the game bugs and all the silly stuff happens. I don’t even want to list the silliness.