The name 'NotificationCenter' does not denote a valid type ('not found').

Hi guys,

I decided to use the Notification Center script on this wiki page in my project:

The file is saved as NotificationCenter.js in Assets/Scripts/. As it says on the wiki page, I just took the script on the page as-is and used it. However, when I click play, I get the following error:

Assets/Scripts/NotificationCenter.js.js(15,36): BCE0018: The name ‘NotificationCenter’ does not denote a valid type (‘not found’).

What am I doing wrong?

MachCUBED

As the error message says, it’s called “Assets/Scripts/NotificationCenter.js.js”. Don’t add “.js” to script names; that makes the type “NotificationCenter.js” rather than “NotificationCenter”.