public List <Biome> GetBiomesFromPosition(int x, int y)//Returns a list of all the biomes that envelop the position given { float tilePositionX = x; float tilePositionY = y; List <Biome> b = new List <Biome>(); for (int i = 0; i < biomes.Length; i++) { Biome biome = biomes[i]; if (biome.GetComponent <Collider2D>().OverlapPoint(new Vector2(tilePositionX, tilePositionY))) { b.Add(biome); } } return(b); }