大约有 1,071 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0064 秒)
... var data = this.tiledMap.getLayerByIndex(3).getTileData(tileX, tileY); // console.log(data) // console.log(Laya.Keyboard.RIGHT) switch (e.keyCode) { //右边 case 39: { this.player.x += 16 break; } case 37: { //左边 this.player.x -= 16 break; } case 38: { //上 this.player.y -= 16 break; } case...
来源: Laya_社区 发布时间: 20230605
...过来的数据怎么获取 private openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ///////////////////////////////////////////////...
来源: Laya_社区 发布时间: 20180424
...r.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSuccess(info: Laya.GeolocationInfo): void { console.log('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if (info...
来源: Laya3.0_文档 发布时间: 20251010
...存二进制文件,逻辑如下: public Request(url:string):void { console.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoad...
来源: Laya_社区 发布时间: 20180604
...te onBlur() { // 暂停所有需要停止的逻辑 console.log("onBlur"); SoundManager.Instance.pauseBGM(); // // 部分机型包内不生效 SoundManager.Instance.pauseAllEffects(); } private onFocus() { if (!SoundMa...
来源: Laya_社区 发布时间: 20250930
...om/question/13181官方Demo运行不起来 wx.onMessage(function(message){ console.log(message); if (message.type && message.type == "wxxx") { //通过接收主域的消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanvas.height = message...
来源: Laya_社区 发布时间: 20180504
...======= demo2 ======================= JQ(aWater).on('click', function () { console.log( JQ(this).index() );//不传 匹配父级元素下的子元素开始算索引 // console.log( JQ(this).index(aWater) );//传数组,从当前数组开始算索引 // console.log( JQ(this).siblings(aWater).remove(...
来源: Laya_社区 发布时间: 20171123
...一index的选项 private onSelect(index: number): void { console.log("当前选择的索引:" + index); let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox; if(checkBoxItem!=null){ ...
来源: Laya_社区 发布时间: 20241014
...s.bgimg.mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg); 2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自: var Loader = Laya.Loader; var loaderHandler = Laya.Handler; ...
来源: Laya_社区 发布时间: 20171024
...wake不同的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用。如果没有重置,则不进行回收复用 onReset(...
来源: Laya3.0_文档 发布时间: 20251010