Пример #1
0
    Vector2 GetSafeJumpPoint()
    {
        Vector2 point = Boundaries.RandomInScreen();

        if (Physics2D.OverlapCircle(point, 3f, unsafeLayers))
        {
            return(GetSafeJumpPoint());
        }
        return(point);
    }