Fork me on GitHub

2012年6月7日

摘要: GUI.DrawTexture(new Rect((Screen.width - Imagetexture.width) >>1, 10, 120, 120), Imagetexture);假设(Screen.width - Imagetexture.width)是300 二进制为 100101100 向右移动一位 为 10010110 计算之后 正好是150 是原来一半 结果不用判断奇偶,如果(Screen.width - Imagetexture.width)为奇数,则结果 为减1除以2 阅读全文
posted @ 2012-06-07 15:47 pengyingh 阅读(198) 评论(0) 推荐(0)

导航