大约有 123 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0034 秒)
... switch(dir1){ case 0:name1 = "stand4";break; case 1:name1 = "stand5";break; case 2:name1 = "stand6";break; case 3:name1 = "stand7";bre...
来源: Laya_社区 发布时间: 20170921
...ToOut) { this.computerOutPoker(this.turnNumber); switch(this.turnNumber) { case 1: this.setLableText("小明出牌了") break; case 2: this.setLableText("小红出牌了") break; case 3: this.setLableText("静静出牌了") break; } //笔记 for (var j = 0; j < this.aaa.playerNameList[this.turnNu...
来源: Laya_社区 发布时间: 20180626
... 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) break; this.skipType(wi...
来源: Laya_社区 发布时间: 20191202
...化 var aa:int= Math.floor((Math.random()*4)+1); var bb:int; switch(aa) { case 1: bb=2; break; case 2: bb=4; break; case 3: bb=1; break; case 4: bb=3; break; } var img:Image = cell.getChildByName("img1") as Image; img.skin ="battle/xuanshangyu/Image_"+aa+"00"+bb+".png"; 一个list中有4张图片,...
来源: Laya_社区 发布时间: 20170616
...题,换回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.scaleX = 1; fr...
来源: Laya_社区 发布时间: 20190723
...e = function(target){ var obj = {}; // 解析target switch (target.type) { case 1: obj.type = "mountain"; break; case 2: obj.type = "statue"; break; case 3: obj.type = "tower"; break; case 4: obj.type = "angel"; break; case 5: obj.type = "aeroboat"; break; default: alert("网络连接错误,请重...
来源: Laya_社区 发布时间: 20170720
...og(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 mapLayer = this.tiledMap.getLayerByI...
来源: Laya_社区 发布时间: 20230605
... switch (node.type) { case KeyFrameValueType.Float: property = property.getFloat(node.getPropertyByIndex(i)); break; case KeyFr...
来源: Laya_社区 发布时间: 20240517
...prite.y) ; console.log("once done") ; } function onWalk(dir){ switch(dir){ case "up": hero_p1.roleAni.play(0,true,"p1_walk_up"); Laya.stage.addChild(hero_p1.roleAni); break ; case "down": hero_p1.roleAni.play(0,true,"p1_walk_down"); Laya.stage.addChild(hero_p1.roleAni); break ; case "left": hero_p1....
来源: Laya_社区 发布时间: 20180331
...tude); }),Handler.create(this,function(error):void { switch (error.code) { case Geolocation.PERMISSION_DENIED: alert("位置服务被拒绝,请检查您的GPS和定位设置"); break; case Geolocation.POSITION_UNAVAILABLE: alert("暂时获取不到位置信息"); break; case Geolocation.TIMEOUT: a...
来源: Laya_社区 发布时间: 20170223