How to make randomly generatio doors on a certain plane?

Dear friends! Could you please tell me how can I do randomly generatio doors on a certain plane. For example I have 4 walls on a 1-3 the walls need to have been spawned in a random door. I'm just confused or not quite even(
March 23rd 20 at 18:49
2 answers
March 23rd 20 at 18:51
set your spawn point doors, combine in an array randomized choose in the point array, sastavni door.

without anchors, it's not much more complicated.
And you can just hand in the story a huge number of doors ) and display them. A lot of options. Door is the same generated object just like everything else - Minnie_Bor commented on March 23rd 20 at 18:54
March 23rd 20 at 18:53
-an array of doors in the location
-random. to obtain the number. for example from 0 to 1.
-less than 0.5 - is at the point the door anymore. (or Vice versa).
-put the door.
-when generating the next location BEHIND the wall after running random - force to put the door. to locations was connected with the passage of "the door".

essno need somewhere to store the configuration the next location it is not updated :) .....although....

Find more questions by tags Unity Game EngineC#