void checkRoomBoundaries()
    {
        GameObject roomBounds = GameObject.FindGameObjectWithTag("RoomBounds");

        if (roomBounds == null)
        {
            throw new System.Exception("No RoomBounds in Scene: " + SceneManager.GetActiveScene().name);
        }

        Bounds bounds = roomBounds.GetComponent <BoxCollider2D>().bounds;

        AtlasSceneManager.getPlayerCoords();
        //UP
        if (transform.position.y + boxCollider.size.y / 2.0f > bounds.max.y)
        {
            AtlasSceneManager.switchScene(-Vector2.up, true);
        }
        //LEFT
        if (transform.position.x - boxCollider.size.x / 2.0f < bounds.min.x)
        {
            AtlasSceneManager.switchScene(-Vector2.right, true);
        }
        //RIGHT
        if (transform.position.x + boxCollider.size.x / 2.0f > bounds.max.x)
        {
            AtlasSceneManager.switchScene(Vector2.right, true);
        }
        //DOWN
        if (transform.position.y - boxCollider.size.y / 2.0f < bounds.min.y)
        {
            AtlasSceneManager.switchScene(Vector2.up, true);
        }
    }
    private void Start()
    {
        anim     = GetComponent <Animator>();
        deformer = GetComponent <Deformer>();
        col      = GetComponent <BoxCollider2D>();

        Vector2 scenePos = AtlasSceneManager.getPlayerCoords();

        if (scenePos.x >= 6 && scenePos.x <= 12 && scenePos.y >= -1 && scenePos.y <= 4)
        {
            setDry();
        }

        AtlasEventManager.Instance.onFlagSet += setDry;
    }