标签:unity lin for check bsp form ast transform orm
1 << LayerMask.NameToLayer("Ground")
只用某层
grounded = Physics2D.Linecast(transform.position, groundCheck.position, 1 << LayerMask.NameToLayer("Ground"));
标签:unity lin for check bsp form ast transform orm
原文地址:http://www.cnblogs.com/leesymbol/p/6086393.html