大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
...ESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu &&am...
来源: Laya_社区 发布时间: 20180525
...racter4]; private var characters:Array = []; private var text:Text; public function PerformanceTest_Cartoon2() { Laya.init(1280, 720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters()...
来源: Laya2.0_示例 发布时间: 20260929
...加载本地图片都报错 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2023-06-09 16:59 浏览: 2950 关注: 3 人 买包的小当家 • 2023-06-08 21:18 。。。 别闹!import循环引用在项目里太正常了。 这几个文件是我把工程里有问...
来源: Laya_社区 发布时间: 20230608
...rivate var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for...
来源: Laya_社区 发布时间: 20171113
... ‘_physicsUpdateList’of null 求指导~~ __proto._onDestroy=function(){ (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this)); var physics3D=Laya3D._physics3D; delete PhysicsComponent._phys...
来源: Laya_社区 发布时间: 20190318
....events.EventDispatcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunci...
来源: Laya_社区 发布时间: 20161218
...:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * ...
来源: Laya_社区 发布时间: 20171129
...个版本修复, chaincollider的 方法 override protected function getDef():* { if (!_shape) { _shape = new window.box2d.b2ChainShape(); _setShape(false); } ...
来源: Laya_社区 发布时间: 20181116
...面则能检测到按键按下,却一直输出undefined var GameStart = (function (_super) { function GameStart() { GameStart.super(this); Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test); } function Test(e){ console.log(e.keycode...
来源: Laya_社区 发布时间: 20180208
...aRender; private var mouseConstraint:*; private var engine:*; /***/ public function Retitution() { super(); this.width = stageWidth; this.height = stageHeight; setup(); } private function setup():void { initMatter(); initWorld(); Laya.stage.on("resize",this,onResize); } private function initMatter()...
来源: Laya_社区 发布时间: 20171214