Version: 2021.3
public static float Distance (Vector2Int a, Vector2Int b);

描述

返回 a 与 b 之间的距离。

Vector2.Distance(a,b) 与 (a-b).magnitude 相同。