using UnityEngine; using UnityEngine.UI; namespace BrewMonster.UI { /// /// HUD button: pick up the nearest ground item or money (host trace + TryPickupNearestGroundMatter). /// Assign to a Button or leave unassigned to use the component's own Button. /// public class PickupNearestButtonHandler : MonoBehaviour { [SerializeField] private Button button; [Tooltip("Horizontal search radius around the player (meters).")] [SerializeField] private float maxSearchRadius = 80f; private void Start() { if (button == null) button = GetComponent