unity在一个对象上挂多个一样的脚本怎么获取

使用GetComponents获取,存到一个该类的数组里

猜你喜欢

转载自www.cnblogs.com/mcyushao/p/9428019.html
今日推荐