Making an area to randomly instantiate objects by coordinates in is easy but for my project I need to randomly instantiate objects in the spawn area while still avoiding to accidentally spawn objects in the red area{blocked area}.
This is not a question regarding numbers it is more regarding coordinates, I seek for objects to instantiate around the point therefore having example: 2, 12 or -3, -10 as spawning points and not just be ignored since it has the blocked area values.
Heres a picture for explanation. The black area marked as Spawn area is the area I wish to have the objects be instantiated in randomly
The red area marked as Blocked Area is the area I wish my instantiation avoids when getting instantiated.
This is a 3D project but it does not really matter if you make it Vector3 or Vector2 since the Y axis doesnt matter in my project.