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