Could someone please give me a simple example of a javascript, that enables me to switch weapons using the number keys.
See this post:http://answers.unity3d.com/questions/144604/how-are-weapons-implemented-in-games.html