大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)
....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
...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
...("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
...Bytes(b); js: ws.onmessage = function (e) { var view=new DataView(e.data); console.log(view.byteLength);//7 console.log(view.getInt32(0));//3 console.log(view.getInt8(4),view.getInt8(5),view.getInt8(6));// -28 -67 -96 console.log(new Uint8Array(view.buffer));//Uint8Array(7) [0, 0, 0, 3, 228, 189, 16...
来源: Laya_社区 发布时间: 20180302
...; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){console.log("----")}; console.info = console.log; console.warn = console.log; console.error = console.log; } this._message = new Message(); this._pack...
来源: Laya_社区 发布时间: 20180119
...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
...都没问题,求大神给解答下啊! 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
...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
...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
... sp=new Sprite(); sp.name = i.toString(); console.log(sp.name); sp = project.drawsomething(20, 20+60*i, "#eeb9b3"); sp.on(Event.CLICK,this, onsp); Laya.stage.addChild(sp); } private function onsp(e:Event){ ...
来源: Laya_社区 发布时间: 20170330