public int KingDistance(Vector2 a, Vector2 b) { return Math.Max( (int)Mathf.Abs(a.x - b.x), (int)Mathf.Abs(a.y - b.y) ); }