newStar.getComponent('Star').game = this;出错

为什么’Star’要改成小写’star’才正确?

跟你资源管理器里脚本的命名是一样的,大小写敏感。

好了,O(∩_∩)O谢谢!