C# Gun with RayCasting

Hey guys, I would like to know if anyone could give me something to start with Raycasting (Tutorial, basic script, etc). I am making a thread for this because I passed the last hour on google and youtube trying to find a good tutorial to teach me how to use raycasting to make a working gun model and I just can’t find anything that is good and based on C#. In case someone can help me more actively, just add me on skype (Kan.croc). All help is appreciated considering that I first used Unity3D exactly 5 days ago.

Thanks

P.S: I beg you to believe me, I don’t want to just copy and paste a script. I just want something to start on.

I’ll try that and post a little review after, just for the record so people with the same question will know if this is good.

Hi WildLynxx

I know this doesn’t answer your question but if you are looking for a good way to start your Unity eduction I found 3D Buzz really good and they have lots of free tutorials using C#. They go a lot into concept which I found really helpful.

Another good place to look for answers is the actual Unity Documentation e.g. for raycasting Unity - Scripting API: Physics.Raycast.

Cheers