super1 发表于 2022-3-27 07:17

unity问题?有没有办法获取一个名字不确定的script组件?

getcomponent<任意接口> () 都能获得实现接口的组件
页: [1]
查看完整版本: unity问题?有没有办法获取一个名字不确定的script组件?