• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 283 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0059 秒)

51. 微信飞机大战报错 [ 81%]

...(_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super)...

来源: Laya_社区 发布时间: 20170416

52. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 81%]

...的继承的示范: ```javascript var HttpRequestExtension = (function (_super) { function HttpRequestExtension() { HttpRequestExtension.__super.call(this); } Laya.class(HttpRequestExtension, 'HttpRequestExtension', _super); var __proto = HttpRequestExtension.prototype; __proto.send = function (ur...

来源: Laya2.0_文档 发布时间: 20210714

53. EventDispatcher接收不到参数 [ 81%]

EventDispatcher接收不到参数 var Dispatcher = (function(_super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = functi...

来源: Laya_社区 发布时间: 20170809

54. as3代码编译错误.100%重现,有测试代码.结果影响很大. [ 81%]

...现,有测试代码.结果影响很大. 就是一句代码,出现连续的super调用的时候,会被编译成错误代码. addFootPrintMagic(super.x,super.y, now); 被编译成addFootPrintMagic(laya.display.Sprite.prototype.x,_super.prototype.y,now); 下面是我写的测试代码,也被编译错...

来源: Laya_社区 发布时间: 20190311

55. ja语言怎么样创建一个工具类在其他地方调用 [ 81%]

...要写一个工具类进行一些逻辑的处理 var Load_ = (function (_super) { function Load_() { Load_.super(this); } //注册类 Laya.class(Load_, "Load_", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的...

来源: Laya_社区 发布时间: 20180705

56. viewportPointToRay产生的射线始终有偏差,是为什么? [ 81%]

...3(0, 0, 0), new Vector3(0, 0, 0)); public _start(state:RenderState):void { super._start(state); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.element...

来源: Laya_社区 发布时间: 20180201

57. 3D变换 · LayaAir3.0文档 · LAYABOX [ 80%]

...ivate translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { // 平移cube this.cube.transform.translate(this.translate, false); } } 效果如图1-1...

来源: Laya3.0_文档 发布时间: 20230821

58. 新手学js做开发,写了一个按钮,点击没有反应 [ 80%]

...关的书籍   完整的结构如下所示: var LoginView = (function(_super){     function LoginView(){         LoginView.super(this);     }     Laya.class(LoginView,"LoginView",_super);     return LoginView; })(ui.LoginUI);   2018-01-30 0 0 分享 微博 QZONE 微信 sky_sum...

来源: Laya_社区 发布时间: 20180130

59. 关于TS get/set重写问题 [ 80%]

...后子类B重写 public set a($value:number):void {     this.aa();    super.a = $value;  } private aa():void{}   但是super是不能用到set/get中的,所以报错了,如果用this替代super,那就死循环肯定不行 然后我看到Laya有提供个方法 Laya.superSet和Laya.superGet  ...

来源: Laya_社区 发布时间: 20180305

60. 飞机大战出现的问题注册了类New的时候报错未定义 [ 80%]

...     })();   //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.super(this); //创建游戏背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/bc.png"); //把背景1放在容器中 this.addChild(this.bg1); //...

来源: Laya_社区 发布时间: 20191018