Quantcast
Channel: Questions in topic: "write-my-code"
Viewing all articles
Browse latest Browse all 92

How do I spawn a random prefab?

$
0
0
I want to spawn a random prefab from my list. The prefabs are players such as a Ninja or a Cyborg. So when the game starts, a player prefab from my list is spawn that the player can control. So every time the player dies, another prefab from the list will be spawned. So it will go on and on, but I'm not sure how I can accomplish this. Can someone please help me?

Viewing all articles
Browse latest Browse all 92

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>