Either:
a) `Weaponsscript` is pure c# and doesn't use any Unity functions, in which case it can be treated like a regular c# class;
or
b) `Weaponsscript` is a Unity script, in which case it'll have `using UnityEngine;` at the top and will derive from `MonoBehaviour`. These scripts do not use constructors, and instead get added to a GameObject in the inspector, or get added at run time using `AddComponent()`. (This is what the error message says, btw.)
There's a pretty good documentation page on this here:
http://docs.unity3d.com/Manual/CreatingAndUsingScripts.html
↧