It may be a problem with a null reference exception, which a few other folks have had (see the other threads on this lecture).
What worked for me was moving this content
animator = GetComponent<Animator>();
Weapon weapon = Resources.Load<Weapon>(defaultWeaponName);
EquipWeapon(weapon);
from Start() to Awake().