Hello, I'm currently making a game in Unity 2D where I have a laser that is currently able to reflect off mirrors and now I'm stuck at this point of time
I'm trying to add damage that will minus off hearts of a Player everytime they collide with the laser. However, after searching I only find that I'll need to apply a raycast in order to apply this damage whereas right now I only have a LineRenderer component.
This is my code. How would I go about adding the damage? I currently only have so far that it logs in the Console that it hit the player once the laser collides with the Player