大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0014 秒)
...hero.prefab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,...
来源: Laya_社区 发布时间: 20200309
...it.wav"); } else { if (owner.parent) { let effect: Laya.Sprite = Laya.Pool.getItemByCreateFun("effect", this.createEffect, this); owner.parent.addChild(effect);//将爆炸动画添加到父节点中 effect.pos(owner.x, owner.y);//设置爆炸动画的位置,让其跟随方块 owner.removeSelf();//...
来源: Laya3.0_文档 发布时间: 20251010