When you do GetComponent() it's 100% important that you check the return value. If you do:
function start() {
mn = GetComponent("MegaNoise");
Debug.Log(mn);
}
then you'll learn something important. (Which to save you the time, is that this function won't be executed. Because its function name is incorrect. Lower-case 's' is your error.)
↧