Closed anedumgottil closed 6 years ago
The current implementation of NormalProjectile accomplishes this entire requirement pretty effectively as of commit e8c18d897752605d524bd3a61cd2f819c9773ea9: https://github.com/Anedumgottil/VR-Mazmorra/blob/e8c18d897752605d524bd3a61cd2f819c9773ea9/Technodungeon/Assets/Scripts/NormalProjectile.cs#L1-L53
See the way the Pistol fires it's bullet in the aforementioned commit state to see how this could be implemented to make a laser. Since the gun already has a bullet, we can just use it for the Turrets and enemies as well, maybe with some minor tweaks to color, size, model, or damage value, so I'll be closing this ticket.
Only kicker is the NormalProjectile and TrackedProjectile seem to be copied out of some strange game and therefore have a bunch of crap attributes that we're not using and are causing minor compiler warnings because the Internet apparently does not know how to code properly, so they'll need cleaning up, especially the TrackedProjectile as of the current commit date. See #39.
Graphical: