大约有 1,729 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1446) laya_api(82) Laya2.0_api(81) Laya3.0_api(55) Laya2.0_文档(29) Laya3.0_文档(27) Laya2.0_示例(5) Laya_示例(4)
...掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循环 if(this.hero.hp < 1){ Laya.timer.clear(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(...
来源: Laya_社区 发布时间: 20170525
...属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Sprite once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件...
来源: laya_api 发布时间: 20170929
...属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Sprite onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node o...
来源: Laya2.0_api 发布时间: 20190513
...null Returns void stop stop(): void Defined in laya/physics/Physics.ts:188 停止物理世界 Returns void updatePhysicsByWorldRoot updatePhysicsByWorldRoot(): void Defined in laya/physics/Physics.ts:249 设定 worldRoot 后,手动触发物理世界更新 Returns void Static enable enable(options?...
来源: Laya3.0_api 发布时间: 20231115
...属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAsynLoaded(url:String, data:*, params:Array):void private Sprite3D once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件...
来源: laya_api 发布时间: 20170929
...属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Sprite onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node o...
来源: Laya2.0_api 发布时间: 20190513
...属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Sprite once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件...
来源: laya_api 发布时间: 20170929
...掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循环 if(this.hero.hp < 1){ Laya.timer.clear(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(...
来源: Laya_社区 发布时间: 20170525
...属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Sprite once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件...
来源: laya_api 发布时间: 20170929
...面),来回弹来弹去,因为有默认的摩擦系数所以会慢慢停止。 示例效果展示: 
来源: Laya2.0_文档 发布时间: 20210715