I need a script where if one character sees or hits another character it will do a game over. I tried using 2 spheres so that if the sphere hits the other one the character loses. Can someone help me out with the scripting?
Use RayCast. Unity - Scripting API: Physics.Raycast This will help you.
I’m having trouble using the raycast. But it might work if I figure look at it some more. I’m pretty new to Unity though.