标签:style blog io ar color os sp java for
#pragma strict function Start () { } function Update () { var hit:RaycastHit; if(Physics.Raycast(transform.position,transform.forward,hit,8)) { print("射线触碰了"+hit.collider.gameObject+"物体"); } }
标签:style blog io ar color os sp java for
原文地址:http://www.cnblogs.com/heisaijuzhen/p/4142166.html