摘要: OneImage.cspublic class OneImage : MonoBehaviour{ public int row, col; public Rect rect; public Texture texture; public bool walkable = tr... 阅读全文
posted @ 2015-08-20 09:22 叶图 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: Square.cs :public class Square : MonoBehaviour{ public int row, col; public Rect rect; public Texture texture; /// /// 1向上 2向右 3向下 4向左 //... 阅读全文
posted @ 2015-08-19 21:27 叶图 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 最大公约数:int rmd(int x, int y)/*x为较大的数,y为较小的数 */{ int t = x%y; if (0 != t) { rmd(y, t); } else { return y; }}最小公倍数:int dmr(int x, int y, int xy)/* x为较大的数,y为较小的数,xy为两数的乘积,最小公倍数为两个数的乘积除以最大公约数 */{ int t = x%y; if (0 != t) { dmr(y, t, xy); } else { return xy/y; }} 阅读全文
posted @ 2013-11-15 20:20 叶图 阅读(350) 评论(0) 推荐(0) 编辑