大约有 74 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0034 秒)
...aya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; case 4: skin = "comp/checkbox.png"; break; case 5:...
来源: Laya_社区 发布时间: 20170607
...,为什么会报6 Reader.prototype.skipType = function(wireType) { switch (wireType) { case 0: this.skip(); break; case 1: this.skip(8); break; case 2: this.skip(this.uint32()); break; case 3: do { // eslint-disable-line no-constant-condition if ((wireType = this.uint32() & 7) === 4) bre...
来源: Laya_社区 发布时间: 20191202
..._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTrans...
来源: Laya_社区 发布时间: 20200119
...de+","+pos.coords.latitude); }),Handler.create(this,function(error):void { switch (error.code) { case Geolocation.PERMISSION_DENIED: alert("位置服务被拒绝,请检查您的GPS和定位设置"); break; case Geolocation.POSITION_UNAVAILABLE: alert("暂时获取不到位置信息"); break; case ...
来源: Laya_社区 发布时间: 20170223
...**/ CustomTerrainMaterial.__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...
来源: Laya2.0_文档 发布时间: 20210715
...**/ CustomTerrainMaterial.__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...
来源: Laya2.0_文档 发布时间: 20210714
对象池的使用 private function creatRen(lei):void { var url:String switch(lei){ case 1: url = "tu/白.png" break; case 2: url = "tu/花旦.png" break; case 3: url = "tu/zhadan.png" break; } var nan:Image = Pool.getItemByClass("nam", Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan...
来源: Laya_社区 发布时间: 20171226
...ta(tileX, tileY); // console.log(data) // console.log(Laya.Keyboard.RIGHT) switch (e.keyCode) { //右边 case 39: { this.player.x += 16 break; } case 37: { //左边 this.player.x -= 16 break; } case 38: { //上 this.player.y -= 16 break; } case 40: { //下 this.player.y += 16 break; } } var mapLay...
来源: Laya_社区 发布时间: 20230605
...mTerrainMaterial.__init__(); .... } private function _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...
来源: Laya2.0_文档 发布时间: 20210714
...不出有啥问题,换回1.0又是正常的,只能来这里请教了 switch (key) { case 'E': frameX = sprite.pivotX * 2; frameY = sprite.pivotY; frameRotation = 0; frame.scaleX = 1; frame.scaleY = 1; break; case 'Q': frameX = sprite.pivotX * 2; frameY = sprite.pivotY; frameRotation = 180; frame...
来源: Laya_社区 发布时间: 20190723