FindWithTag用法

来源:互联网 发布:局域网共享端口 编辑:程序博客网 时间:2024/06/06 07:21


float dis = Vector3.Distance(obj.transform.position,this.transform.position);
print (dis);

dis为两个物体在空间上的距离;

0 0
原创粉丝点击