public static void ClampY(this Transform transform, float min, float max) { transform.SetY(Mathf.Clamp(transform.position.x, min, max)); }