2026/4/6 9:14:22
网站建设
项目流程
网站的设计原则有哪些,wordpress轮播主题,网站广告条效果,网站开发评审时间安排其实使用和unity基本一样#xff0c;但是代码写法有点不一样#xff0c;unity的话只用直接写事件函数 onTriggerEnter或者 onCollisionEnter就好#xff0c;但是cocos不仅要写#xff0c;还要在start方法里绑定start() {this.collider this.node.getComponent(Collider…其实使用和unity基本一样但是代码写法有点不一样unity的话只用直接写事件函数 onTriggerEnter或者 onCollisionEnter就好但是cocos不仅要写还要在start方法里绑定start() {this.collider this.node.getComponent(Collider);//需要这么用Collider或者是Triggerthis.collider.on(onTriggerEnter, this.onTriggerEnter, this);}onTriggerEnter(self) {}