大约有 39 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0024 秒)
...obuf/awesome.proto", onAssetsLoaded); function onAssetsLoaded(err, root) { if (err) throw err; // Obtain a message type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new message var message = AwesomeMessage.create( { awesomeField: "AwesomeString" }); // Verify the me...
来源: Laya2.0_示例 发布时间: 20241119
...this.scrollBarIsStop; } onListMouse(e, index){ console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(this.openedItem, { "x": 0 }, 500, null, Hand...
来源: Laya2.0_示例 发布时间: 20241119
...h (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:Array = []; private points3:Array = []; private tpoint1:Array = []; ...
来源: Laya2.0_示例 发布时间: 20241119
... = Laya.Sprite; for (var i = 0; i w) { stars[i].x = stars[i].x - w; } else if (stars[i].x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number = Browser.width; private h:number = Browser.height; private slideX:number = this.w / 2; private slideY:number = this.h / 2; private...
来源: Laya2.0_示例 发布时间: 20241119
...amp; } // 将原始坐标转换为百度坐标 convertToBaiduCoord(data) { if (data.status == 0) { let position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } onError(e) { const Geolocation = Laya.Geolocation; if (e.code == Geolocat...
来源: Laya2.0_示例 发布时间: 20241119
...; } animate() { const Sprite = Laya.Sprite, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0; // iterate through the dudes and update the positions laser = new Sprite(); laser.loadImage("res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; let pos1; let pos2; if (typ...
来源: Laya2.0_示例 发布时间: 20241119
...in); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } completeHandler() { this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getAnimNum(); if (mCurrIndex >=...
来源: Laya2.0_示例 发布时间: 20241119
... segments.length; i Laya.stage.width) targetPosition.x = Laya.stage.width; if (targetPosition.y Laya.stage.height) targetPosition.y = Laya.stage.height; } checkEatFood() { let food; for (let i = foods.length - 1; i >= 0; i--) { food = foods[i]; if (food.hitTestPoint(targetPosition.x, targetPosition....
来源: Laya2.0_示例 发布时间: 20241119
...idBody; for (let i = 0, len = this.count; i < len; i++) { body = bodys[i]; if (!this.touching[i]) { continue; } let bodyA: RigidBody = this.sensorCollider.owner.getComponent(RigidBody); let bodyB: RigidBody = body.owner.getComponent(RigidBody); let bodyOriA = bodyA.getBody(); let bodyOriB = bodyB.ge...
来源: Laya2.0_示例 发布时间: 20241119
...t = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } onMouseMove(e) { let to...
来源: Laya2.0_示例 发布时间: 20241119