摘要:
static RaycastHit2D Linecast(Vector2 start, Vector2 end, int layerMask = DefaultRaycastLayers, float minDepth = -Mathf.Infinity, float maxDepth = Mathf.Infinity);运用Physics2D.Linecast(transform.position,groundDetector.position,1 myLayerMask == 00001000 这时层级中的第3层被开启,其余层处于关闭状态 另外,需注意的是,层的序号是从0开始计算的 因此, 阅读全文
posted @ 2014-02-18 18:49
LouisSong
阅读(2579)
评论(1)
推荐(0)

浙公网安备 33010602011771号