大约有 74 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0031 秒)
...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
...) + ".wav"; return audioPath; } public boolean onTouch(final String type){ switch(type){ case "d": mPTTStartTime = System.currentTimeMillis(); startRecordAudio(); return true; case "u": mAudioDownloaded = false; long endTime = System.currentTimeMillis(); if (endTime - mPTTStartTime < 1000){ Expor...
来源: Laya_社区 发布时间: 20170722
...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
...position = new Laya.Vector3(0, 0, 0); } onKeyDown(evt: Laya.Event): void { switch (evt.keyCode) { case Laya.Keyboard.SPACE: //按键盘空格时 this.characterController.jump(this.jumpVector); // 跳跃 break; } } } 4.4 获得垂直速度 getVerticalVel() 垂直速度方法主要用于获取角色...
来源: Laya3.0_文档 发布时间: 20251010