大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0011 秒)
...。 音效:采用的是laya.media.SoundManager音频管理类中的playSound方法,允许同时播放多个音频文件。 二、音频的兼容性准备 由于音频播放问题的各个浏览器兼容性不同,在开始应用前,我们要做好前期的兼容准备。 (1)使用...
来源: Laya3.0_文档 发布时间: 20251010
...Component(Laya.RigidBody).setVelocity({ x: 0, y: -10 }); Laya.SoundManager.playSound("resources/sound/hit.wav"); } else { if (owner.parent) { let effect: Laya.Sprite = Laya.Pool.getItemByCreateFun("effect", this.createEffect, this); owner.parent.addChild(effect);//将爆炸动画添加到父节点...
来源: Laya3.0_文档 发布时间: 20251010