大约有 470 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0040 秒)
timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! 例如: var b:number = 1; Laya.timer.once(100,this,this.play,[b]); 在play():void{ }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180331
...s); if (interval != void 0) { this.interval = interval; } this.on(Laya.Event.COMPLETE, this, () => { this.destroy(); }); this.frameIndex = 0; ...
来源: Laya_社区 发布时间: 20201211
... var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startF...
来源: Laya2.0_示例 发布时间: 20241117
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(...
来源: Laya2.0_示例 发布时间: 20241117
...pineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.build...
来源: Laya_示例 发布时间: 20241117
.../spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory...
来源: Laya_示例 发布时间: 20241117
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Ev...
来源: Laya2.0_示例 发布时间: 20241117
...es4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory...
来源: Laya_示例 发布时间: 20241117
...ineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.build...
来源: Laya_示例 发布时间: 20241117
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactor...
来源: Laya2.0_示例 发布时间: 20241117