大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0080 秒)
...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
...tr = new String("大家好,这是websocket通信!"); console.log("str.length*2:" + str.length*2); var b = new ArrayBuffer(20 + str.length*2); var dv = new DataView(b, 0); dv.setUint16(0, str.length*2, false); ...
来源: Laya_社区 发布时间: 20170628
...ock.clone(); aa.transform.localPositionX=i; aa.transform.localPositionY=0; console.log("白色方块位置"+aa.transform.localPositionX); console.log(aa.transform.localPositionY); console.log(aa.transform.localPositionZ); GameUI.instance.sences.addChild(aa); console.log(this.owner); 2019-11-11 添...
来源: Laya_社区 发布时间: 20191111
...d("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("processHandler"); } function errorHandler(data){ console.log("errorHandler"); } function completeHandler(e){ console.log("completeHandler"); } 2018-08-27 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180827
...onLoaded)); } private onLoaded(): void { console.log("onLoaded ......"); GameBootstrap.wxPostMessage({ cmd:1, text: 'hello', year: (new Date()).getFullYear() },nu...
来源: Laya_社区 发布时间: 20180529
...nFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 private onClickBtnBoy():void { console.log("click onClickBtnBoy"); } private onClickBtnFriend():void { console.log("click onClickBtnFriend"); } private onClickBtnShop():void { ...
来源: Laya_社区 发布时间: 20180312
...方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console.log("onTriggerStay"); }; onCollisionEnter(other){ console.log("onCollisionEnter"); }; onCollisionStay(collision){ console.log("onCollisionStay"); } } 附...
来源: Laya_社区 发布时间: 20191215
...Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1秒需要使用3000,1000作为参...
来源: Laya_社区 发布时间: 20180620