Script Compilation Question...

When I try to add the "PlayerWeapons" Script to an empty game object, a dialogbox appears. It says.... "Script Playerweapons has not finished compilation yet. Please wait until compilation of the script has finished and try again."

I wait for like 10 minutes and the script still hasn't finished compiling. I don't even know how to tell if it's done compiling. Anyone know whats wrong with it?

Try any of the following:

  • Close and reopen Unity.
  • Reimport the script file.
  • Change the script file's name.
  • Make sure there aren't any errors in the console (Ctrl+Shift+C).
  • Try a "Reimport All".