大约有 1,546 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0068 秒)
....timer.delta累计游戏玩了多长时间 下面是代码: onHide():void{ console.log("onhide|aaa|" + Laya.timer.delta); Laya.timer.scale = 0; console.log("Laya.timer.scale=" + Laya.timer.scale); } onShow():void{ console.log("onshow|bbb|111|" + Laya.timer.delta); Laya.timer.scale = 1; console.log("...
来源: Laya_社区 发布时间: 20180806
...命周期触发多次,连constructor都执行了两次 onAwake():void { console.log("onAwake"); } onStart():void { console.log("onStart"); } onEnable():void { console.log("onEnable"); } onDisable():void { console.log("onDisable"); } 附件 : --> 2019-12-09 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20191209
...("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); console.log("1111"); } function errorHandler(data){ console.log("2222"); } function completeHandler(e){ console.log("3333"); } 2018-08-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180830
...个参数: onTriggerEnter(other: any, self: any, contact: any): void { console.log(other); //被碰撞的对象 console.log(self); //自己 console.log(contact); //连接点对象, contact.getHitInfo(); //这里有碰撞点的信息 } 官方文档不全,或者说没法说的那么仔细,...
来源: Laya_社区 发布时间: 20181026
...都没问题,求大神给解答下啊! private connect(): void { console.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.E...
来源: Laya_社区 发布时间: 20201023
...cemaps.write(releaseDir + '/../sourcemaps')) .on('error', function (err) { console.warn(err.toString()); }) .pipe(gulp.dest(releaseDir)); } }); 可以看到laya是用uglify工具压缩的js 2、生成js对应的 .js.map文件 .js.map :map文件是js文件压缩后,文件的变量名替换对应...
来源: Laya_社区 发布时间: 20190528
...= Laya.Browser.clientWidth; this.oldheight= Laya.Browser.clientHeight; } console.log("设置横屏" + isFirst); if (isFirst) Laya3D.init(1280, 720, true); else Laya.stage.width = 1280; Laya.stage.height = 720; //Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.scaleMode = Laya.Stage...
来源: Laya_社区 发布时间: 20180517
...sgCallBack = function () { this.kwxSocket.OnMessageCallBack=function(msg){ console.log("回调"+msg); var dataTemp = JSON.parse(msg); console.log(dataTemp.d); kwxGame.prototype.cardData = dataTemp.d; [b][i]Laya.timer.once(1000, this, this.onOncePiao); [/i][/b] } }在定时器中需要调用外部_pr...
来源: Laya_社区 发布时间: 20170419
...d, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); }); b)、创建并编写脚本 tools-publish.js#!/usr/bin/env n...
来源: Laya_社区 发布时间: 20201223
...ion; if(other.label === "heng"){ console.log("角度"+this.owner.rotation); this.owner.rotation=180-n; console.log("角度"+this.owner.rotation); } if(other.label === "shu"){...
来源: Laya_社区 发布时间: 20200817