Skip to content

Commit c9cb849

Browse files
Add compilation directives in the hovered map tile manager script
1 parent f4cd901 commit c9cb849

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/Project/Scripts/Game Objects/Managers/Map Tile/HoveredMapTileManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
public class HoveredMapTileManager : MonoBehaviour, IPrimaryWindowElement, IMapEditingElement
55
{
66
public UnityEvent<MapTile> hoveredMapTileWasChangedEvent;
7-
7+
8+
#if !UNITY_ANDROID
89
private bool mapTileCanBeDetectedAfterPathfinding = true;
10+
#endif
911
private bool mapTilesCanBeHovered = true;
1012
private MapTile mapTile;
1113
private MapPathManager mapPathManager;
@@ -23,7 +25,9 @@ public void SetPrimaryWindowElementActive(bool active)
2325
SetMapTile(null);
2426
}
2527

28+
#if !UNITY_ANDROID
2629
mapTileCanBeDetectedAfterPathfinding = active;
30+
#endif
2731
}
2832

2933
public void SetMapEditingElementActive(bool active)

0 commit comments

Comments
 (0)