摘要:
var myCursor : Texture2D; var myClickCursor : Texture2D; var cursorWidth : float; var cursorHeight : float; private var isClicked : boolean = false; function Start () { Screen.showCursor = false; } function Update () { if (Input.GetMouseButton(0)) isClicked = true; ... 阅读全文
posted @ 2013-05-06 20:58
码写人生
阅读(198)
评论(0)
推荐(0)
摘要:
1。从顶视图上截取一张场景图,命名为map。2。找一个圆圈图标,作为playerTexture.3.创建panle作为地面。实际代码如下:public Texture map ; public Texture playerTexture ;float cubePosX=0 ;float cubePosY=0 ;public GameObject player ;public GameObject plane;float planeWidth;void Start(){ planeWidth=plane.GetComponent<MeshFilter>().mesh.bound... 阅读全文
posted @ 2013-05-06 20:32
码写人生
阅读(378)
评论(0)
推荐(0)

浙公网安备 33010602011771号