大约有 277 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
Laya_社区(197) Laya2.0_文档(34) Laya3.0_api(16) Laya3.0_文档(11) Laya2.0_api(6) Laya_示例(6) laya_api(4) Laya2.0_示例(3)
...= this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration(1000); } } 上述代码中的Main.instance.animator.play("Stun");表示改变动画状态,目的是在减少血量时播放受到攻击的...
来源: Laya3.0_文档 发布时间: 20251010
...则使用时会出问题 */ export default class PoolManager { static _instance:any; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初始化 //加载到内存中...
来源: Laya_社区 发布时间: 20191206
... new Laya.Vector2(); screenPoint.x = Laya.MouseManager.instance.mouseX; screenPoint.y = Laya.MouseManager.instance.mouseY; // console.log(screenPoint); let touchRay:Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new La...
来源: Laya_社区 发布时间: 20220117
...如这个页面的关闭 Close(): void { IconManager.Instance().clearTexture(this.leftverticaldrawing.skin);//清理某个动态贴图的资源(clearRes方法清理png) IconManager.Instance().clearTexture(this.rightverticaldrawing.skin); ResMgr...
来源: Laya_社区 发布时间: 20200915
...s 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,onFunciton) 2016-12-19 0 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20161218
...么设置 2017-12-21 0 4 分享 微博 QZONE 微信 庆乐 赞同来自: instance代表创建的弹窗实例 instance.close = function(type = null) { if (!type) return // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); ...
来源: Laya_社区 发布时间: 20170316
...f(LoadControl.isLaodSuccess){ console.log("加载成功了"); EventManager.Instance().BroadcastLisenter(GameEnum.load_success); }else{ console.log("开始加载进度了"); ResourceManager.Instance().loadSuccess(); // 这里改成不加载资源就能加载成功页面, 改成loadRuning()就报错...
来源: Laya_社区 发布时间: 20181213
... = MSG_TYPE.USERLOGIN; userLogin.msgSize = MSG_SIZE; userLogin.uid = Login.instance.g_userInfo.uid; userLogin.token = Login.instance.g_userInfo.token; var msgByteArray:WritingBuffer = new WritingBuffer(); msgInfo.writeTo(msgByteArray); onSendBytesToServer(msgByteArray); msgInfo(这是protobu的de) /...
来源: Laya_社区 发布时间: 20170405
...it> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray.origin.x = 0; ray.origin.y = 0; ray.origin.z = 0; handCamera.viewportPointToRay(point, ray)...
来源: Laya_社区 发布时间: 20171017
... button.hide() MenuView.instance.createMenuBtn(); SocketManager.instance.sendlogin(); //LayaSample.gameLoad.toStartGame() } ...
来源: Laya_社区 发布时间: 20190109