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?
asked Jan 01 '12 at 10:56 PM
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".
answered Jan 01 '12 at 11:26 PM