大约有 84 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0041 秒)
...for (var i:int = 5; i > 0; i-- ){ data["item" i] = {index:Math.floor(temp)}; temp = temp/10; } trace(this.score); this.scorebox.dataSource = data; } 2017-02-21 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 直接使用IDE下提供的Clip组件实现...
来源: Laya_社区 发布时间: 20170221
... if (0.6>(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime-Math.floor(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime))>0.5) 根据动画当前播放的百分比进行判断 2018-10-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...
来源: Laya_社区 发布时间: 20181025
...anager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885245902 0.6876280737704918 0.7501024590163934 0.8125768442622952 0.8750512295081967 0.93752...
来源: Laya_社区 发布时间: 20180619
...anager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885245902 0.6876280737704918 0.7501024590163934 0.8125768442622952 0.8750512295081967 0.93752...
来源: Laya_社区 发布时间: 20180717
..., 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21 ] T(i: number) { return Math.floor(Math.pow(2, 32) * Math.abs(Math.sin(i + 1))); } x_index(i: number) { if (i >= 0 && i <= 15) return i; if (i >= 16 && i <= 31) return (5 * i + 1) % 16; if (i >= 32 && i <= 47) re...
来源: Laya_社区 发布时间: 20190321
...ge(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你要问的...
来源: Laya_社区 发布时间: 20180524
...但是提供的方位并非正确方位。"); } addLog("Gyroscope " + Math.floor(info.alpha)); } 2017-10-15 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你的意思是没有走onOrientationChange函数吗?如果是的话你在Event前边加个Laya.看下 2017-10-16 0 0 ...
来源: Laya_社区 发布时间: 20171015
... style.height = screen.height + 'px'; style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px'; document.body.appendChild(this.nativeImg) } onEnable() { Laya.timer.once(1000, this, this.delayShowImg); } de...
来源: Laya_社区 发布时间: 20230323
...plete"); } function changeColor(text){ console.log("update"); var c = Math.floor(Math.random()*4); console.log(c); switch(c) { case 0:text.color='red';break; case 1:text.color="blue";break; case 2:text.color ='black';break; case 3:text.color = 'green';break; case 4:text.color = "yellow";break; } con...
来源: Laya_社区 发布时间: 20180620
...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```
来源: Laya2.0_文档 发布时间: 20210715