- Home /
Question by
MangoChocobo · Aug 05, 2017 at 03:41 AM ·
c#scene-loadingprefab-instance
Random Room Selection
Me and my friend are trying to figure out if it's possible to make "Rooms" and have our game load a random room with each door in the previous room. something along the lines of how Rogue Legacy does. I mainly want to be pointed in the right direction. like Do we make a bunch of rooms. put them in an array? then have it load randomly from said array?
Comment
Best Answer
Answer by Yoshinator2 · Aug 05, 2017 at 06:08 AM
Yes, that would be easiest. Just use a Random.Range function with the minimum being 0 and the maximum being the array.count! :)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
[Solved] Storing a GameObject in a var and then instantiating it in a new scene? 2 Answers
Prefabs & Instances 1 Answer