Quantcast
Channel: Answers by "Foose"
Viewing all articles
Browse latest Browse all 34

Answer by Foose

$
0
0
Well. Let me check if I understand you right. You have a list of gameobjects. And a spawner that spawns a random gameobject out of this list but you don't want it to spawn a GameObject A if it already has spawned a GameObject A before, right? You could make prefabs for all the gameobjects you want to spawn, if you havent already. Than you simply could create two string variables to hold the objects name. The first one will hold the previous spawned objects name and the second will hold the name of the to be spawned object. Now check if the two variables have the same value, if so...return to start or sth...if not give the string for previous object the value of the new object and let the object spawn.

Viewing all articles
Browse latest Browse all 34

Latest Images

Trending Articles





Latest Images