大约有 3 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0012 秒)
...Handler); rect.on(Event.MOUSE_OUT, this, this.mouseHandler); rect.on(Event.DOUBLE_CLICK, this, this.mouseHandler); rect.on(Event.MOUSE_WHEEL, this, this.mouseHandler); } /** * 鼠标响应事件处理 */ mouseHandler(e) { const Event = Laya.Event; switch (e.type) { case Event.MOUSE_DOWN: this.append...
来源: Laya2.0_示例 发布时间: 20241124
...abel.fontSize = 16; label.color = "#e69999"; Laya.Laya.stage.on(Laya.Event.DOUBLE_CLICK, this, () => { this.totalBox += 100; }); Laya.Laya.timer.frameLoop(1, this, this.addMiniBox); } dispose() { Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLICK); Laya.Laya.stage.removeChild(this.label); } } new Physic...
来源: Laya2.0_示例 发布时间: 20241124
...tIntance(revoluteJoint); } eventListener() { Laya.Laya.stage.on(Laya.Event.DOUBLE_CLICK, this, () => { this.motorJoint.motorSpeed = -this.motorJoint.motorSpeed; }); Laya.Laya.stage.on(Laya.Event.CLICK, this, () => { const chassisBody = this.chassis.getComponent(Laya.RigidBody); const chassisPos = ch...
来源: Laya2.0_示例 发布时间: 20241124