监听事件中getComponent()方法报错
Creator 2.x
2115036082
(WOKR)
2019年12月13日 11:28
#1
微信图片_20191213153350.png
1169×748 17.5 KB
whitesheep
(wsssheep)
2019年12月13日 11:33
#2
getComponent(“Class”) 这个跟着的是一个cc类或者 cc类名,你的类是 pic ?,还有 getComponent 之后最好存在一个变量里。