// Update is called once per frame
    void Update()
    {
        if (floorController != null)
        {
            transform.position = floorController.GetPositionOnFloor(positionLerpValue) + floorController.Normal * floorOffset;

            if (Vector2.Dot(floorController.RightDirection, Vector2.right) <= dotThresholdBreak)
            {
                floorController = null;

                if (BreakEvent != null)
                {
                    BreakEvent();
                }
            }
        }
    }