using UnityEngine; /// /// Interface for UI components that can block clicks from propagating to the game world. /// Components implementing this interface can register with the ClickManager to control /// when their UI elements should prevent map interaction. /// public interface IClickBlocker { /// /// Determines if the UI component is blocking clicks at the given screen position. /// This method should check if the click position is within the UI bounds and /// whether the UI is currently in a state that should block interaction. /// /// The screen position of the click in pixels /// True if this UI component should block the click, false otherwise bool IsBlockingClick(Vector2 screenPosition); }