1. Mathf.RoundToInt 函数
If the number ends in .5 so it is halfway between two integers, one of which is even(偶数) and the other odd(奇数), the even number is returned.
注意的是,当数字最后为.5时,它夹在两个整数之间,这两个整数一个是奇数一个是偶数,函数将返回那个偶数。
原文:http://www.cnblogs.com/sutingwei/p/3556764.html