I can't add script to Prefab.

I try to learn unity from youtube in this tutorial

. At time 1.32.06 of video it have to Add Component but why it not show any script.

This is my project.

In tutorial it show like this.



It’s because you don’t have Weapon script. So, you’ve started learning unity from advanced step instead of beginner, why?

I follow from basic in part 1 to this part with no problem. I have all code in Scripts folder but can’t Add Component.

This is weapon.cs code it have no error when debug in MonoDevelop.

I forgot to chage editor code to : Editor . Thank you.