大约有 226 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...声音: Laya.SoundManager.playMusic("sounds/fish.mp3", 1, Handler.create(this, this.onComplete)); //Laya.SoundManager.playSound("sounds/fish.mp3", 1, Handler.create(this, this.onComplete),Laya.AudioSound); 后来在html里加了一个audio标签,看看原始的audio能不能播。 <audio src=...
来源: Laya_社区 发布时间: 20170823
...tatic s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMa...
来源: Laya_社区 发布时间: 20171124
...享 微博 QZONE 微信 156*****215 赞同来自: Laya.timer.frameLoop(1,this,()=>{ if(this.lastClientWidth!=Laya.Browser.clientWidth){ if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){ ...
来源: Laya_社区 发布时间: 20190514
...ne { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl.changeText("分数:" + this._score); if (this._control.c...
来源: Laya_社区 发布时间: 20190828
...: 2 人 黄进 • 2018-06-11 17:23 啥意思? Content.once(Event.CLICK,this,OnMouseDown); Content.once(Event.MOUSE_OUT,this,OnMouseDown); Laya.stage.once(Event.FRAME,this,onEnterFrame); 这样事件都监听不到? Laya_Aaron • 2018-06-11 17:52 你描述的我也不懂是什么意思,只能...
来源: Laya_社区 发布时间: 20180611
...pm ERR! npm ERR! Failed at the electron@1.8.6 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2018-05-08T04_07_13_726Z-debug.log 环境: mac...
来源: Laya_社区 发布时间: 20180508
...selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem); // 设置数据项为对应图片的路径 var data: Array<String>...
来源: Laya_社区 发布时间: 20210122
...ComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetComponetInChild(node._childs[index],); } } 如何写成泛型方法呢???编译不通过 GetComponetInChild<T>(node:laya.display.Node):T { // var s:=typeof(Laya.Animator); for (var index = 0; index < nod...
来源: Laya_社区 发布时间: 20180531
...ring(shader.ps, true); shader.conch_id = shader.id; } _.needsz(68); _.wu32(this.id); _.wu32(25); _.wu32(ib.conch_id); _.wu32(vb.conch_id); _.wu32(1); _.wu32(eleNum); _.wu32(iStart); _.wu32(img.imgId); _.wu32(shader.id); var uv = texture.uv; _.wf32(mat.a); _.wf32(mat.b); _.wf32(mat.c); _.wf32(mat.d);...
来源: Laya_社区 发布时间: 20190806
...题 class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。 请问有人碰到过...
来源: Laya_社区 发布时间: 20180808