private void BallWithStones() { float dTop = transform.position.y - stoneHengesVertices.topMost.y; float dRight = transform.position.x - stoneHengesVertices.rightMost.x; if (transform.position.x > 18.8f && dRight < stoneRadius && transform.position.y < 8f) { connonBall.Bounce(false, false, true); } if (transform.position.x <= 18.8f && dTop < stoneRadius && transform.position.x >= 11f) { connonBall.Bounce(true, false, false); } }