public static bool IsAtmosPassable(params BasicTile[] tile) { for (var i = 0; i < tile.Length; i++) { BasicTile t = tile[i]; if (t && !t.IsAtmosPassable()) { return(false); } } return(true); }
public virtual bool IsAtmosPassableAt(Vector3Int position) { BasicTile tile = tilemap.GetTile <BasicTile>(position); return(!tile || tile.IsAtmosPassable()); }