void CheckEdges(bool pool)
    {
        if (left == null || right == null)
        {
            float camWidth = camera.orthographicSize * camera.aspect;

            float edgeRight = transform.position.x + (spriteWidth / 2f);
            float edgeLeft  = transform.position.x - (spriteWidth / 2f);

            if (camera.transform.position.x + camWidth >= edgeRight + padding && right == null)
            {
                right = CreateTile(1, pool);
                right.CheckEdges(pool);
            }
            if (camera.transform.position.x - camWidth <= edgeLeft - padding && left == null)
            {
                left = CreateTile(-1, pool);
                left.CheckEdges(pool);
            }
        }
    }