大约有 1,449 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0054 秒)
... 以下两个Obj区别是什么?有点不太明白用意, MiniFileMgr.filesListObj = {}; MiniFileMgr.fakeObj = {}; static copyFile(tempFilePath, readyUrl, callBack, encoding = "", isAutoClear = true) { var temp = tempFil...
来源: Laya_社区 发布时间: 20200529
...ction destroyUnusedResources(group:String = null):void { var res:Resource; if (group) { var resouList:Vector.<Resource> = _groupResourcesMap[group]; if (resouList) { var tempResouList:Vector.<Resource> = resouList.slice(); for (var i:int, n:int = tempResouList.length; i < n; i++) { re...
来源: Laya_社区 发布时间: 20190126
... // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 */ static clearBySign(sign: string)...
来源: Laya3.0_文档 发布时间: 20230303
...mation(physicTransformOut, force) { var transform = this.owner._transform; if (force || this._getTransformFlag(Laya.Transform3D.TRANSFORM_WORLDPOSITION)) { var shapeOffset = this._colliderShape.localOffset; var position = transform.position; var btPosition = CannonPhysicsComponent._btVector30; if (s...
来源: Laya_社区 发布时间: 20210904
...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; } function checkEatFood() { var food; for (var i = foods.length - 1; i >= 0; i--) { food = foods[i]; if (food.hitTestPoint(targetPosition.x, target...
来源: Laya_示例 发布时间: 20241119
...ya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.scaleMode = Stage.SCALE...
来源: Laya_社区 发布时间: 20170801
...X - mLastMouseX); var starY:Number=mY - (Laya.stage.mouseY - mLastMouseY); if(starX<=0) { starX=0; } if(starY<=0) { starY=0 } if(starX>=400) { starX=400 } if(starY>=400) { starY=400; } tiledMap.moveViewPort(starX,starY)); 2017-01-19 1 1 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20170119
...age.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. this.CurrentAngles = t...
来源: Laya_社区 发布时间: 20170714
...竖屏 canvasDegree = 0; if (rotation) { if (_screenMode === SCREEN_HORIZONTAL) { mat.rotate(Math.PI / 2); mat.translate(screenHeight / pixe...
来源: Laya_社区 发布时间: 20180621