大约有 72 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)
...on)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); b...
来源: Laya2.0_文档 发布时间: 20210715
... */ private static dispatch(message:any):void{ switch(message.cmd){ case 1: var testUI: ui.test.TestPageUI = new ui.test.TestPageUI(); testUI.x = 100; t...
来源: Laya_社区 发布时间: 20180529
...cript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.ga...
来源: Laya2.0_文档 发布时间: 20210715
...对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象 ...
来源: Laya2.0_文档 发布时间: 20210715
...dateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象...
来源: Laya2.0_文档 发布时间: 20210715
...dateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } 代码运行时,由于update回调是每一帧都在...
来源: Laya3.0_文档 发布时间: 20230726
...nction updateColor(txt:Text):void { var c:int = parseInt(Math.random()*3); switch(c) { case 0: { txt.color="#EEE000"; break; } case 1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调方法 * @param tx...
来源: Laya2.0_文档 发布时间: 20210715
...ll code paths in function return a value. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ /* Module Resolution Options */ // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Nod...
来源: Laya_社区 发布时间: 20190408
...6), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); break; default: //随机计算一个宽度 当然 最小是3倍 以防难度太难 var _w = 32 * (3 + parseInt(1...
来源: Laya_社区 发布时间: 20160801
...ter.subMaps[curfileHead]; url = url.replace(curfileHead, newfileHead); } } switch (type) { case Laya.Loader.IMAGE: case "htmlimage": case "nativeimage": MiniLoader._transformImgUrl(url, type, thisLoader); break; case Laya.Loader.SOUND: thisLoader._loadSound(url); break; default: ...
来源: Laya_社区 发布时间: 20200103