public int GetTileIDFromRayHit(RaycastHit hit)
        {
            int i = 0;

            for (int count = layers.Count; i < count; i++)
            {
                WorldLayer_Terrain worldLayer_Terrain = layers[i] as WorldLayer_Terrain;
                if (worldLayer_Terrain != null)
                {
                    return(worldLayer_Terrain.GetTileIDFromRayHit(hit));
                }
            }
            return(-1);
        }
        public int GetTileIDFromRayHit(RaycastHit hit)
        {
            int i     = 0;
            int count = this.layers.Count;

            while (i < count)
            {
                WorldLayer_Terrain worldLayer_Terrain = this.layers[i] as WorldLayer_Terrain;
                if (worldLayer_Terrain != null)
                {
                    return(worldLayer_Terrain.GetTileIDFromRayHit(hit));
                }
                i++;
            }
            return(-1);
        }