大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)
...r animate:Boolean; public function setAnimated(b:Boolean):void { animate=b if(animate) { startAnimated(); } } private var num:int=20; private function startAnimated():void { if(animate) { num=-num; var obj:Object=new Object(); obj["x"]=this.x; obj["y"]=this.y+num; Tween.to(this,obj,500,null,Handler....
来源: Laya_社区 发布时间: 20180524
... Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it has the potential to load private frameworks, private methods,...
来源: Laya_社区 发布时间: 20171221
...private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } pub...
来源: Laya_社区 发布时间: 20171124
...ar dist = Laya.stage.mouseX - buttonPosition; var targetX = beginPosition; if (dist > TOGGLE_DIST) targetX = endPosition; Tween.to(button, { x: targetX }, 100); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; impo...
来源: Laya_示例 发布时间: 20251219
...,我缩放了sp 边框也跟着变小 a1748004424 • 2018-02-11 16:41 if (e.delta > 0 && this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta <...
来源: Laya_社区 发布时间: 20180211
...nnonHitResult(); this.scene.cannonPhysicsSimulation.rayCast(this.ray,out); if(out.succeeded) { console.log(111); } } } 附件 : --> web.rar 2020-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 程程 赞同...
来源: Laya_社区 发布时间: 20200903
... console.log("onBtnClick"); } update(){ if(this.isleft == true){ console.log('zuo'); this.rig.applyLinearImpulse({x:this.view.m_character.width/2,y:this.view.m_character.height/2},{x:-10,y:0}) } ...
来源: Laya_社区 发布时间: 20221207
...了 Player.cached = false; _proto.init = function(){ //动画缓存起来 if(!Player.cached){ Player.cached = true; //根据不同的动画 来创建动画模板 laya.display.Animation.createFrames(['player/chara_01.png','player/chara_02.png','player/chara_03.png','player/chara_04.png'], Player.RUN)...
来源: Laya_社区 发布时间: 20160801
...te */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRotationZ); this.te...
来源: Laya_社区 发布时间: 20200707
...var newText: string = '[ '; for (var i: number = 0; i < numKeyDown; i++) { if (this.keyDownList[i]) { newText += i + " "; } } newText += ']'; this.logger.changeText(newText); } /**添加提示文本*/ private createLogger(): void { this.logger = new Text(); this.logger.size(Laya.stage.width, Laya.st...
来源: Laya_示例 发布时间: 20251219