大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0017 秒)
...owner.x, owner.y);//设置爆炸动画的位置,让其跟随方块 owner.removeSelf();//删除方块自身节点对象 Laya.SoundManager.playSound("resources/sound/destroy.wav"); } } PhysicsGameMainRT.instance.addScore(1); } else if (other.label === "ground") { //只要有一个盒子碰到地板...
来源: Laya3.0_文档 发布时间: 20251010
... any, contact: any): void { //如果被碰到,则移除子弹 this.owner.removeSelf(); } onUpdate(): void { //如果子弹超出屏幕,则移除子弹 if ((this.owner as Laya.Sprite).y < -10) { this.owner.removeSelf(); } } onDisable(): void { //子弹被移除时,回收子弹到对象池,...
来源: Laya3.0_文档 发布时间: 20251010