Hi, I’m making a tower defence game and currently I have one generic turret controller script that all turrets will use which takes care of fire rates targeting etc. However each turret will obviously fire differently. How would I assign the different firing scripts in the one spot.
I don’t mind the different scripts functions having the same name like fire(). I was thinking something along the lines of searching through the turrets components for one the ends in fire (use a naming convention) and then assign it like that but i don’t think that’s going to work.
The games not too far started so I’m open minded to different solutions to this kind of problem that may require large changes, but i would prefer to keep one generic controlling script and one turret type specific one.
Thanks in advance