Script Broken?

60368-screen-shot-2015-12-20-at-105118-am.png

why is it doing this (there are no errors).

I’ve had this problem a couple of times before.
It happens when you directly add a component instead of clicking-and-dragging. There’s nothing wrong with doing that, however it doesn’t tell you when the class and file name don’t match up.
That’s most likely the problem. Just match up the name of the script and the class and you’ll be fine.
Hope this helped!

Three possible causes, I can think of:

  1. Your class name doesn’t match the file name.
  2. Your class doesn’t inherit from MonoBehaviour.
  3. You have compile errors in your code, but don’t see them highlighted because there are still other errors in some other script.

To sum up, you need a file UpgradeManager.cs with a class UpgradeManager : MonoBehaviour { }. And double check your spelling, it’s the most essential skill for programming. :wink: