| 123456789101112131415161718 |
- using UnityEngine;
- /// <summary>
- /// 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.
- /// </summary>
- public interface IClickBlocker
- {
- /// <summary>
- /// 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.
- /// </summary>
- /// <param name="screenPosition">The screen position of the click in pixels</param>
- /// <returns>True if this UI component should block the click, false otherwise</returns>
- bool IsBlockingClick(Vector2 screenPosition);
- }
|