I am new here so I am not entirely sure where to post this but I figured here would be the right place to post this topic since I am a beginner and this is the beginner section.
My problem is, I was coding a Raycast in JAVA (for a melee system) and I got an error like this (need help with unity.png)
I don't know if it has to do with the code I created for the enemies. (That's why enemy logic is there). The only thing I put for the enemies is for them to lose health. They don't attack or move.
Key:
Melee System Code: Top Right
Error: Top Left
Enemy Logic: Bottom Left