大约有 106 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)
...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
...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
...ddGroup(rigidbody, ratio); } private function addGroup(rigidbody, ratio) { switch(ratio) { case 1: rigidbody.group = Physics_Physics_CollisionFiltering.k_smallGroup; break; case 2: rigidbody.group = Physics_Physics_CollisionFiltering.k_middleGroup; break; case 3: rigidbody.group = Physics_Physics_Co...
来源: Laya2.0_示例 发布时间: 20240930
.... 慢慢的,开始尝试自己写代码 从最开始的if else 到switch 从table 到div 从只能在一个页面上写写改改,到使用框架尝试制作一个网站 期间遇到过无数问题,其中苦难只有自己知道 从变量到数组、循环、还有花了很长时间才...
来源: Laya_社区 发布时间: 20180524
...0); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间和出错次数决定,这个函数将会在游戏gameStart函数中调用,因为...
来源: Laya_社区 发布时间: 20160623
...s =this; var type:String = message.type; switch(type) { default: break; } // this.getFriendData(); this.setlist(this.arr); } 然后 记...
来源: Laya_社区 发布时间: 20190307
...对象 */ 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
...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
...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