如何轮动作数量数量、动作

2023-09-08 13:55:36 作者:都已过去√何必再忆

我怎么能轮数最多向下或0.5使用动作脚本3.0 例如:

how can I round number to up down or to the 0.5 using action script 3.0 for example

4.9将四舍五入至5 4.7将四舍五入至4.5 2.4将四舍五入至2.5 2.3将四舍五入至2

感谢你。

推荐答案

如何

Math.round(2 * number_here) / 2