解决方法

The problem was that in my code I was referencing the Animator component on the prefab, not the instantiation of it.

意思就是不能在预制体上用Animator组件,换成模型就好了。