两点距离计算 方式1:使用自带函数 public static float Distance(Vector3 a, Vector3 b); 方式2:比较距离使用平方结果比较 float dis =(a.pos-b.pos)