Hi! So I am making an FPS and I am watching a “Make an FPS” tutorial by Jimmy Vegas on YouTube. I wrote the script for a Raycast and an Enemy damage. When I am on monodev, and I right-click then press “run to cursor” (that is how I debug the script) the debug comes out clean. When I try to attach the scripts to theire places (enemy on a cube, raycast script on my gun), they say they are incorrect. Please help!
Here are the scripts: