大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0072 秒)
... constructor(){ super(); this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) } createChildren(){ super.createChildren(); this.loadScene('LoginScene'); } } import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ export default class GameCo...
来源: Laya_社区 发布时间: 20190402
...8-11-16 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: onGreen(){ console.log("换成绿锤子") this.greenPitchUp.visible=true; this.bluePitchUp.visible=false; let player=Player.instance; // player.anSk.showSlotSkinByIndex("HarmGreen",1); player.anSk.replaceSlotSkinByIndex("HarmGreen",1,0)...
来源: Laya_社区 发布时间: 20181114
...> { this.event(AppEvent.onShow, res); this.appStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //恢复时间 Laya.timer.scale = 1; }) window['wx'].onHide(() => {...
来源: Laya_社区 发布时间: 20200917
...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...
来源: Laya2.0_文档 发布时间: 20210715
...博 QZONE 微信 匿名用户 赞同来自: function begingame(){ console.log("开始游戏"); var Tween = Laya.Tween; gamebox.x = Laya.Browser.width; gamebox.visible = true; Laya.stage.addChild(gamebox); // Tween.to(beginbox,{x:-Laya.Browser.width},1000,...
来源: Laya_社区 发布时间: 20170104
...(foodsList); addFoodListener(); } private function addFoodListener():void{ console.log(foodsList[this.index]); this.currentFood = this.foodsList[this.index]; console.log(currentFood); this.currentFood.on(Event.MOUSE_DOWN, this, onMouseDown); this.currentFood.on(Event.MOUSE_UP, this, onMouseUp); }cur...
来源: Laya_社区 发布时间: 20180405
...port class NewScript extends Main { private ui: RuntimeScript; onStart() { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass...
来源: Laya3.0_文档 发布时间: 20250217
...; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else i...
来源: Laya_社区 发布时间: 20171228
...eNames[i]; let curMem: number = Laya.Stat.currentMemorySize// >> 20; console.log("curM:", curMem); path = bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName); bigao.control.SkillControl.instance._skillView = null; Laya.loader.clearRes(path, true); // 为什么这...
来源: Laya_社区 发布时间: 20170905
... } else { console.warn("Shader3D: unknown passIndex."); } } else { console.warn("Shader3D: unknown subShaderIndex."); ...
来源: Laya_社区 发布时间: 20200606